Skip to content

Commit ddf5d98

Browse files
committed
fix: refactoring types
1 parent 4af6fc5 commit ddf5d98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/overlay/pack.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"github.com/pkg/xattr"
2525
stackerfs "machinerun.io/atomfs/pkg/fs"
2626
stackeroci "machinerun.io/atomfs/pkg/oci"
27+
fstypes "machinerun.io/atomfs/pkg/types"
2728
"machinerun.io/atomfs/pkg/verity"
2829
"stackerbuild.io/stacker/pkg/lib"
2930
"stackerbuild.io/stacker/pkg/log"
@@ -281,7 +282,7 @@ func generateBlob(layerType types.LayerType, contents string, ociDir string, low
281282
blob = layer.GenerateInsertLayer(contents, "/", false, &packOptions)
282283
mediaType = ispec.MediaTypeImageLayer
283284
} else {
284-
fsi := stackerfs.New(stackerfs.FilesystemType(layerType.Type))
285+
fsi := stackerfs.New(fstypes.FilesystemType(layerType.Type))
285286
blob, mediaType, rootHash, err = fsi.Make(ociDir, contents, nil, layerType.Verity)
286287
if err != nil {
287288
return nil, "", "", err

0 commit comments

Comments
 (0)