1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder/builder-next
Sebastiaan van Stijn 3cb933db9d
Update uses of Image platform fields in OCI image-spec
The OCI image spec is considering to change the Image struct and embedding the
Platform type (see opencontainers/image-spec#959) in the go implementation.
Moby currently uses some struct-literals to propagate the platform fields,
which will break once those changes in the OCI spec are merged.

Ideally (once that change arrives) we would update the code to set the Platform
information as a whole, instead of assigning related fields individually, but
in some cases in the code, image platform information is only partially set
(for example, OSVersion and OSFeatures are not preserved in all cases). This
may be on purpose, so needs to be reviewed.

This patch keeps the current behavior (assigning only specific fields), but
removes the use of struct-literals to make the code compatible with the
upcoming changes in the image-spec module.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-09-10 12:09:06 +02:00
..
adapters Merge pull request #43366 from corhere/finish-identitymapping-refactor 2022-03-25 14:51:05 +01:00
exporter Update uses of Image platform fields in OCI image-spec 2022-09-10 12:09:06 +02:00
imagerefchecker remove unneeded "digest" alias for "go-digest" 2022-03-04 14:49:42 +01:00
worker build: force unlazy of refs by calling extract 2022-06-24 11:54:41 +02:00
builder.go api: add BuildCache.Parents for API >= v1.42 2022-08-04 09:30:06 +02:00
controller.go vendor buildkit v0.10.0 2022-03-22 18:51:27 +01:00
executor_unix.go Finish refactor of UID/GID usage to a new struct 2022-03-14 16:28:57 -04:00
executor_windows.go Finish refactor of UID/GID usage to a new struct 2022-03-14 16:28:57 -04:00
reqbodyhandler.go builder-next: use constants for http status codes 2019-10-13 19:11:24 +02:00