Skip to content

Commit 34a42d2

Browse files
authored
feat: refactor to use machinerun.io/atomfs (#640)
Signed-off-by: Ravi Chamarthy <[email protected]>
1 parent a9a3809 commit 34a42d2

21 files changed

+20
-2247
lines changed

cmd/stacker/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55

66
cli "github.com/urfave/cli/v2"
7-
"stackerbuild.io/stacker/pkg/squashfs"
7+
"machinerun.io/atomfs/squashfs"
88
"stackerbuild.io/stacker/pkg/stacker"
99
"stackerbuild.io/stacker/pkg/types"
1010
)

cmd/stacker/inspect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/opencontainers/umoci/oci/casext"
1212
"github.com/pkg/errors"
1313
cli "github.com/urfave/cli/v2"
14-
stackeroci "stackerbuild.io/stacker/pkg/oci"
14+
stackeroci "machinerun.io/atomfs/oci"
1515
)
1616

1717
var inspectCmd = cli.Command{

cmd/stacker/internal_go.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/pkg/errors"
1111
cli "github.com/urfave/cli/v2"
1212
"golang.org/x/sys/unix"
13-
"stackerbuild.io/stacker/pkg/atomfs"
13+
"machinerun.io/atomfs"
1414
"stackerbuild.io/stacker/pkg/lib"
1515
"stackerbuild.io/stacker/pkg/log"
1616
"stackerbuild.io/stacker/pkg/overlay"

cmd/stacker/publish.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package main
33
import (
44
"github.com/pkg/errors"
55
cli "github.com/urfave/cli/v2"
6+
"machinerun.io/atomfs/squashfs"
67
"stackerbuild.io/stacker/pkg/lib"
7-
"stackerbuild.io/stacker/pkg/squashfs"
88
"stackerbuild.io/stacker/pkg/stacker"
99
"stackerbuild.io/stacker/pkg/types"
1010
)

go.mod

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,22 @@ go 1.21.0
55
toolchain go1.21.6
66

77
require (
8-
github.com/Masterminds/semver/v3 v3.2.1
98
github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be
109
github.com/apex/log v1.9.0
1110
github.com/apparentlymart/go-shquot v0.0.1
1211
github.com/cheggaaa/pb/v3 v3.1.2
1312
github.com/containers/image/v5 v5.24.2
1413
github.com/dustin/go-humanize v1.0.1
15-
github.com/freddierice/go-losetup v0.0.0-20220711213114-2a14873012db
1614
github.com/justincormack/go-memfd v0.0.0-20170219213707-6e4af0518993
1715
github.com/klauspost/pgzip v1.2.6
1816
github.com/lxc/go-lxc v0.0.0-20230926171149-ccae595aa49e
1917
github.com/lxc/incus v0.3.1-0.20231215145534-1719ffcbab9d
20-
github.com/martinjungblut/go-cryptsetup v0.0.0-20220520180014-fd0874fd07a6
2118
github.com/minio/sha256-simd v1.0.1
2219
github.com/mitchellh/hashstructure v1.1.0
2320
github.com/moby/buildkit v0.11.4
2421
github.com/opencontainers/go-digest v1.0.0
2522
github.com/opencontainers/image-spec v1.1.0-rc4
26-
github.com/opencontainers/umoci v0.0.0-00000000000000-000000000000
23+
github.com/opencontainers/umoci v0.4.8-0.20220412065115-12453f247749
2724
github.com/pkg/errors v0.9.1
2825
github.com/pkg/xattr v0.4.9
2926
github.com/sirupsen/logrus v1.9.3
@@ -41,6 +38,12 @@ require (
4138
stackerbuild.io/stacker-bom v0.0.0-00010101000000-000000000000
4239
)
4340

41+
require (
42+
github.com/Masterminds/semver/v3 v3.2.1 // indirect
43+
github.com/freddierice/go-losetup v0.0.0-20220711213114-2a14873012db // indirect
44+
github.com/martinjungblut/go-cryptsetup v0.0.0-20220520180014-fd0874fd07a6 // indirect
45+
)
46+
4447
require (
4548
dario.cat/mergo v1.0.0 // indirect
4649
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230106234847-43070de90fa1 // indirect
@@ -274,6 +277,7 @@ require (
274277
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
275278
gopkg.in/warnings.v0 v0.1.2 // indirect
276279
gopkg.in/yaml.v3 v3.0.1 // indirect
280+
machinerun.io/atomfs v1.1.1
277281
modernc.org/libc v1.37.6 // indirect
278282
modernc.org/mathutil v1.6.0 // indirect
279283
modernc.org/memory v1.7.2 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1592,6 +1592,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
15921592
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
15931593
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
15941594
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
1595+
machinerun.io/atomfs v1.1.1 h1:EprTiYMzAlKL+3S7woe9DsCJGwO2dkHTlvmjlVNO8pY=
1596+
machinerun.io/atomfs v1.1.1/go.mod h1:cidyEmsNeeo+9f7OiHl/nA+8KS7Vj5XOslR87VkIebM=
15951597
modernc.org/libc v1.37.6 h1:orZH3c5wmhIQFTXF+Nt+eeauyd+ZIt2BX6ARe+kD+aw=
15961598
modernc.org/libc v1.37.6/go.mod h1:YAXkAZ8ktnkCKaN9sw/UDeUVkGYJ/YquGO4FTi5nmHE=
15971599
modernc.org/mathutil v1.6.0 h1:fRe9+AmYlaej+64JsEEhoWuAYBkOtQiMEU7n/XgfYi4=

pkg/atomfs/molecule.go

Lines changed: 0 additions & 266 deletions
This file was deleted.

pkg/atomfs/molecule_test.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)