-
Notifications
You must be signed in to change notification settings - Fork 489
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
driver: make buildkitd "config" and "flags" names consistent #2268
Conversation
ci failure for docs-upstream workflow is not related: #2269 |
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.
General: should it be --buildkitd-x
or --buildkit-x
?
I don't think we would expect buildx to refer to buildkit as anything other than a daemon. So maybe the d
can be removed. I think it would make it easier to remember.
Hum I think |
f24343b
to
ec4d0ff
Compare
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
ec4d0ff
to
56fc68e
Compare
Should we keep the old flags as hidden / deprecated for 1 .. 2 releases so that we can print a meaningful error if someone is using these? (didn't fully read through the diff, so perhaps we have something for that). |
d2d74db
to
f258de4
Compare
@thaJeztah Yes we keep This is similar to https://github.com/docker/cli/blob/1443014cbd604b460548a7729ec8ec510a5dbc5d/cli/command/container/opts.go#L247-L250 |
Ah, thanks! Are we planning to officially deprecate the old one? (in that case, we could consider printing a deprecation warning when used, which can be "non-fatal" for now, but made "fatal" in a future release). |
Fine to keep it imo and I don't think the cli prints such warning atm for |
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
f258de4
to
5a46691
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
Needs follow-up on https://github.com/crazy-max/docker-setup-buildx-action |
I found it confusing to have
config
as driver opt instead ofbuildkitd-config
so we are consistent withbuildkitd-flags
. Same for variables not aligned across our code base.This is also relevant for #2270