Skip to content

Commit

Permalink
Merge pull request #4648 from thaJeztah/debug_image_spec
Browse files Browse the repository at this point in the history
exporter: make OnBuild omiteempty
  • Loading branch information
tonistiigi authored Feb 16, 2024
2 parents c38d2c1 + 973d2d9 commit fdd2b2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exporter/containerimage/image/docker_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type ImageConfig struct {

Healthcheck *HealthConfig `json:",omitempty"` // Healthcheck describes how to check the container is healthy

OnBuild []string // ONBUILD metadata that were defined on the image Dockerfile
OnBuild []string `json:",omitempty"` // ONBUILD metadata that were defined on the image Dockerfile
Shell strslice.StrSlice `json:",omitempty"` // Shell for shell-form of RUN, CMD, ENTRYPOINT
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/dockerfile/dockerfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6867,7 +6867,7 @@ RUN rm -f /foo-2010.1
RUN rm -f /foo-2030.1
`)

const expectedDigest = "sha256:29f2980a804038b0f910af98e9ddb18bfa4d5514995ee6bb4343ddf621a4e183"
const expectedDigest = "sha256:3eb3c164e3420bbfcf52c34f1e40ee66631d69445e934175b779551c729f80df"

dir := integration.Tmpdir(
t,
Expand Down

0 comments on commit fdd2b2e

Please sign in to comment.