Set BuildKit's ExportedProduct variable to show useful errors in the future#37439
Set BuildKit's ExportedProduct variable to show useful errors in the future#37439tiborvass merged 3 commits intomoby:masterfrom
Conversation
|
full diff: moby/buildkit@9acf51e...c3846bd |
There was a problem hiding this comment.
double-checked, and these all match what's already in moby/vendor.conf
f30077a to
0e57b2d
Compare
Codecov Report
@@ Coverage Diff @@
## master #37439 +/- ##
=========================================
Coverage ? 34.95%
=========================================
Files ? 610
Lines ? 44878
Branches ? 0
=========================================
Hits ? 15685
Misses ? 27073
Partials ? 2120 |
0e57b2d to
1aa26e2
Compare
dockerversion/version_lib.go
Outdated
There was a problem hiding this comment.
Better to have a default value? (moby? moby-engine? dockerd?)
There was a problem hiding this comment.
I think it's better to keep it empty, because there are no "moby releases". Docker will set this.
cmd/dockerd/docker.go
Outdated
There was a problem hiding this comment.
if dockerversion.ProductName != ""
1aa26e2 to
5080d67
Compare
thaJeztah
left a comment
There was a problem hiding this comment.
minor nits and question, but LGTM otherwise; let me know if you want to address them in this PR, or want to do so as a follow up
hack/make/.go-autogen
Outdated
builder/builder-next/controller.go
Outdated
There was a problem hiding this comment.
Why's this commented out? Does this need a TODO?
There was a problem hiding this comment.
Not a super-fan of this boolean argument, but 🤷♂️
There was a problem hiding this comment.
That's in buildkit. Feel free to change it there, but I don't think it's a blocker for this PR.
There was a problem hiding this comment.
Yes, I saw it was implemented there :-)
Signed-off-by: Tibor Vass <[email protected]>
This introduces a PRODUCT environment variable that is used to set a constant at dockerversion.ProductName. That is then used to set BuildKit's ExportedProduct variable in order to show useful error messages to users when a certain version of the product doesn't support a BuildKit feature. Signed-off-by: Tibor Vass <[email protected]>
Signed-off-by: Tibor Vass <[email protected]>
5080d67 to
8159922
Compare
|
@thaJeztah addressed. |
|
unrelated CI failures |
This introduces a PRODUCT environment variable that is used to set a constant
at dockerversion.ProductName.
That is then used to set BuildKit's ExportedProduct variable in order to show
useful error messages to users when a certain version of the product doesn't
support a BuildKit feature.
Vendors buildkit to c3846bd