Skip to content

Commit

Permalink
renamed incorrectly named consts (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbradys authored Dec 4, 2024
1 parent 235218c commit 01faf39
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cmd/hauler/cli/store/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func writeExportsManifest(ctx context.Context, dir string, platformStr string) e
return err
}

return oci.WriteFile(consts.OCIImageManifestFile, buf.Bytes(), 0666)
return oci.WriteFile(consts.ImageManifestFile, buf.Bytes(), 0666)
}

func (x *exports) describe() tarball.Manifest {
Expand Down
4 changes: 2 additions & 2 deletions internal/mapper/mappers.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func Images() map[string]Fn {
m := make(map[string]Fn)

manifestMapperFn := Fn(func(desc ocispec.Descriptor) (string, error) {
return consts.OCIImageManifestFile, nil
return consts.ImageManifestFile, nil
})

for _, l := range []string{consts.DockerManifestSchema2, consts.DockerManifestListSchema2, consts.OCIManifestSchema1} {
Expand All @@ -52,7 +52,7 @@ func Images() map[string]Fn {
}

configMapperFn := Fn(func(desc ocispec.Descriptor) (string, error) {
return consts.OCIImageConfigFile, nil
return consts.ImageConfigFile, nil
})

for _, l := range []string{consts.DockerConfigJSON} {
Expand Down
10 changes: 5 additions & 5 deletions pkg/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ const (
HaulerIgnoreErrors = "HAULER_IGNORE_ERRORS"

// container files and directories
OCIImageIndexFile = "index.json"
OCIImageManifestFile = "manifest.json"
OCIImageConfigFile = "config.json"
OCIImageLayoutFile = "oci-layout"
OCIImageBlobsDir = "blobs"
OCIImageIndexFile = "index.json"
OCIImageLayoutFile = "oci-layout"
OCIImageBlobsDir = "blobs"
ImageManifestFile = "manifest.json"
ImageConfigFile = "config.json"

// other constraints
CarbideRegistry = "rgcrprod.azurecr.us"
Expand Down

0 comments on commit 01faf39

Please sign in to comment.