Skip to content

commands/history: rewrite with stdlib multi-errors#3626

Merged
crazy-max merged 1 commit intodocker:masterfrom
thaJeztah:native_multierror
Jan 27, 2026
Merged

commands/history: rewrite with stdlib multi-errors#3626
crazy-max merged 1 commit intodocker:masterfrom
thaJeztah:native_multierror

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the commands/history rm error aggregation to use Go’s standard library multi-error support (errors.Join) and removes the now-unneeded HashiCorp multierror/errwrap dependencies from the vendored tree.

Changes:

  • Replace github.com/hashicorp/go-multierror usage in commands/history/rm.go with errors.Join.
  • Remove go-multierror / errwrap from go.mod and vendor manifests, and delete their vendored sources.
  • Add a depguard rule to prevent reintroducing github.com/hashicorp/go-multierror.

Reviewed changes

Copilot reviewed 3 out of 18 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
commands/history/rm.go Switches multi-error aggregation to stdlib errors.Join.
go.mod Removes direct/indirect requirements for go-multierror/errwrap.
go.sum Updates module sums (partial) related to removed dependencies.
vendor/modules.txt Removes vendored module entries for go-multierror/errwrap.
.golangci.yml Adds depguard denial for github.com/hashicorp/go-multierror.
vendor/github.com/hashicorp/go-multierror/append.go Deletes vendored go-multierror implementation.
vendor/github.com/hashicorp/go-multierror/flatten.go Deletes vendored go-multierror implementation.
vendor/github.com/hashicorp/go-multierror/format.go Deletes vendored go-multierror implementation.
vendor/github.com/hashicorp/go-multierror/group.go Deletes vendored go-multierror implementation.
vendor/github.com/hashicorp/go-multierror/multierror.go Deletes vendored go-multierror implementation.
vendor/github.com/hashicorp/go-multierror/prefix.go Deletes vendored go-multierror implementation.
vendor/github.com/hashicorp/go-multierror/sort.go Deletes vendored go-multierror implementation.
vendor/github.com/hashicorp/go-multierror/README.md Removes vendored documentation for go-multierror.
vendor/github.com/hashicorp/go-multierror/Makefile Removes vendored build tooling for go-multierror.
vendor/github.com/hashicorp/go-multierror/LICENSE Removes vendored license file for go-multierror.
vendor/github.com/hashicorp/errwrap/errwrap.go Deletes vendored errwrap implementation.
vendor/github.com/hashicorp/errwrap/README.md Removes vendored documentation for errwrap.
vendor/github.com/hashicorp/errwrap/LICENSE Removes vendored license file for errwrap.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@crazy-max crazy-max merged commit fd4fbd0 into docker:master Jan 27, 2026
166 checks passed
@thaJeztah thaJeztah deleted the native_multierror branch January 27, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants