-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate github.com/docker/docker/pkg/fileutils and remove docker dependency from main go.mod #105
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the second of two steps to break the archive package's dependence on utils so that archive may be moved into pkg. `Matches()` is also a good candidate pkg in that it is small, concise, and not specific to docker internals Signed-off-by: Rafe Colton <rafael.colton@gmail.com>
Fixed #8761 Signed-off-by: Alexandr Morozov <lk4d4@docker.com>
Bump version to 1.4.0
Merge release v1.4.0
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
Signed-off-by: Dave Goodchild <buddhamagnet@gmail.com>
Should fix #11598 Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Change CLI error msg because it was too specific and didn't make sense when there were errors not related to inaccessible files. Removed some log.Error() calls since they're not really errors we should log. Returning the error will be enough. Closes: #13417 Signed-off-by: Doug Davis <dug@us.ibm.com>
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
linting changes
Signed-off-by: Lei Jitang <leijitang@huawei.com>
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Signed-off-by: John Howard <jhoward@microsoft.com>
Windows: Fix error in daemon log on info
Closes #13113 Signed-off-by: Doug Davis <dug@us.ibm.com>
Signed-off-by: Justas Brazauskas <brazauskasjustas@gmail.com>
Bugfix - Typos
Signed-off-by: John Howard <jhoward@microsoft.com>
Signed-off-by: John Howard <jhoward@microsoft.com>
Signed-off-by: Elena Morozova <lelenanam@gmail.com>
.dockerignore pattern of **/.foo incorrectly matched **/bar.foo because **/.foo was getting converted into a .*\.foo regex instead of (.*/)*\.foo Closes #29014 Signed-off-by: Doug Davis <dug@us.ibm.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Fixes case sensitivity issue Signed-off-by: Derek McGowan <derek@mcgstyle.net>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
gty-migrate-from-testify --ignore-build-tags Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Update gotestyourself to gotest.tools
Signed-off-by: mooncake <xcoder@tenxcloud.com>
``` builder/remotecontext/remote.go:48: G107: Potential HTTP request made with variable url (gosec) builder/remotecontext/git/gitutils.go:145: G107: Potential HTTP request made with variable url (gosec) builder/remotecontext/git/gitutils.go:147: G107: Potential HTTP request made with variable url (gosec) pkg/fileutils/fileutils_test.go:185: G303: File creation in shared tmp directory without using ioutil.Tempfile (gosec) pkg/tarsum/tarsum_test.go:7: G501: Blacklisted import `crypto/md5`: weak cryptographic primitive (gosec) pkg/tarsum/tarsum_test.go:9: G505: Blacklisted import `crypto/sha1`: weak cryptographic primitive (gosec) ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Replace gometalinter with golangci-lint
full diff: gotestyourself/gotest.tools@v2.3.0...v3.0.1 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
These tests were no longer valid on Go 1.16; related to https://tip.golang.org/doc/go1.16#path/filepath > The Match and Glob functions now return an error if the unmatched part of > the pattern has a syntax error. Previously, the functions returned early on > a failed match, and thus did not report any later syntax error in the pattern. Causing the test to fail: === RUN TestMatches fileutils_test.go:388: assertion failed: error is not nil: syntax error in pattern: pattern="a\\" text="a" --- FAIL: TestMatches (0.00s) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Trying to avoid logging code in "libraries" used elsewhere. If this debug log is important, it should be easy to add in code that's calling it. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This package only contains testing / benchmarking code, so dependencies needed for this package should not be in the main go.mod. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
It was only used for very minimal checks, so removing it to not have this as a dependency. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah any chance to get this change merged? Thanks! |
The dependency on docker here currently pins docker in any consumer of docker/buildx, so it would be nice to see this PR merged. I can help if needed! |
cc @tonistiigi |
I opened #136 to replace this one; that migrates to a separate module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
depends on moby/moby#42492
relates to moby/buildkit#2150 (comment)
See individual commits for details