-
Notifications
You must be signed in to change notification settings - Fork 2k
cli/command/image: move build-context detection to build #6189
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
Conversation
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
818a642
to
246be82
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
type ContextType string | ||
|
||
const ( | ||
ContextTypeStdIn ContextType = "stdin" // ContextTypeStdIn indicates that the build-context is a TAR archive passed through STDIN. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: IMO StdIn
looks weird and isn't consistent with the general naming (like os.Stdin
).
ContextTypeStdIn ContextType = "stdin" // ContextTypeStdIn indicates that the build-context is a TAR archive passed through STDIN. | |
ContextTypeStdin ContextType = "stdin" // ContextTypeStdin indicates that the build-context is a TAR archive passed through STDIN. |
(just an opinion though)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, yeah, can change; I always read its as standard-in / standard-out, standard-err, not as a single word, but Golang uses os.Stdin
, so it makes sense to follow that.
Let me update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done! Will merge when CI finishes.
Removes direct imports of github.com/docker/docker/builder in the image package, to be moved later. Signed-off-by: Sebastiaan van Stijn <[email protected]>
246be82
to
260f1db
Compare
Besides the docker CLI, compose also uses this for the classic builder, so we need a place to put this; it's likely out of scope for the client itself, so we may as well put it here for now.
Removes direct imports of github.com/docker/docker/builder in the image package, to be moved later.
- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)