Skip to content

Commit

Permalink
Merge pull request #44127 from thaJeztah/20.10_backport_image_spec_no…
Browse files Browse the repository at this point in the history
…_literal

[20.10] Update uses of Image platform fields in OCI image-spec
  • Loading branch information
cpuguy83 committed Oct 6, 2022
2 parents 435c40c + 6d6a236 commit 3bb9973
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions builder/builder-next/exporter/writer.go
Expand Up @@ -20,10 +20,9 @@ import (
// )

func emptyImageConfig() ([]byte, error) {
img := ocispec.Image{
Architecture: runtime.GOARCH,
OS: runtime.GOOS,
}
img := ocispec.Image{}
img.Architecture = runtime.GOARCH
img.OS = runtime.GOOS
img.RootFS.Type = "layers"
img.Config.WorkingDir = "/"
img.Config.Env = []string{"PATH=" + system.DefaultPathEnvUnix}
Expand Down

0 comments on commit 3bb9973

Please sign in to comment.