mirror of
https://github.com/hauler-dev/hauler.git
synced 2026-02-14 09:59:50 +00:00
renamed incorrectly named consts (#371)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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} {
|
||||
@@ -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} {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user