Merge pull request #44127 from thaJeztah/20.10_backport_image_spec_no_literal

[20.10] Update uses of Image platform fields in OCI image-spec
This commit is contained in:
Brian Goff 2022-10-06 11:18:55 -07:00 committed by GitHub
commit 3bb99735b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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}