Skip to content

Commit 8a7f789

Browse files
committed
merge #594 into opencontainers/umoci:main
Aleksa Sarai (6): internal: move pkg/system to internal internal: move pkg/testutils to internal/testhelpers internal: move pkg/iohelpers to internal internal: move pkg/funchelpers to internal internal: move pkg/pathtrie to internal internal: move pkg/idtools to internal LGTMs: cyphar
2 parents 46ad7b5 + e0662ee commit 8a7f789

66 files changed

Lines changed: 99 additions & 99 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ BASE_LDFLAGS := -s -w -X ${PROJECT}.gitCommit=${COMMIT}
6565
# Specific build flags for build type.
6666
ifeq ($(GOOS), linux)
6767
DYN_BUILD_FLAGS := ${BASE_FLAGS} -buildmode=pie -ldflags "${BASE_LDFLAGS}"
68-
TEST_BUILD_FLAGS := ${BASE_FLAGS} -buildmode=pie -ldflags "${BASE_LDFLAGS} -X ${PROJECT}/pkg/testutils.binaryType=test"
68+
TEST_BUILD_FLAGS := ${BASE_FLAGS} -buildmode=pie -ldflags "${BASE_LDFLAGS} -X ${PROJECT}/internal/testhelpers.binaryType=test"
6969
else
7070
DYN_BUILD_FLAGS := ${BASE_FLAGS} -ldflags "${BASE_LDFLAGS}"
71-
TEST_BUILD_FLAGS := ${BASE_FLAGS} -ldflags "${BASE_LDFLAGS} -X ${PROJECT}/pkg/testutils.binaryType=test"
71+
TEST_BUILD_FLAGS := ${BASE_FLAGS} -ldflags "${BASE_LDFLAGS} -X ${PROJECT}/internal/testhelpers.binaryType=test"
7272
endif
7373

7474

cmd/umoci/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ import (
2929
ispec "github.com/opencontainers/image-spec/specs-go/v1"
3030
"github.com/urfave/cli"
3131

32+
"github.com/opencontainers/umoci/internal/funchelpers"
3233
"github.com/opencontainers/umoci/mutate"
3334
"github.com/opencontainers/umoci/oci/cas/dir"
3435
"github.com/opencontainers/umoci/oci/casext"
3536
igen "github.com/opencontainers/umoci/oci/config/generate"
36-
"github.com/opencontainers/umoci/pkg/funchelpers"
3737
)
3838

3939
// FIXME: We should also implement a raw mode that just does modifications of

cmd/umoci/gc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525

2626
"github.com/urfave/cli"
2727

28+
"github.com/opencontainers/umoci/internal/funchelpers"
2829
"github.com/opencontainers/umoci/oci/cas/dir"
2930
"github.com/opencontainers/umoci/oci/casext"
30-
"github.com/opencontainers/umoci/pkg/funchelpers"
3131
)
3232

3333
var gcCommand = cli.Command{

cmd/umoci/insert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ import (
2929
"github.com/urfave/cli"
3030

3131
"github.com/opencontainers/umoci"
32+
"github.com/opencontainers/umoci/internal/funchelpers"
3233
"github.com/opencontainers/umoci/mutate"
3334
"github.com/opencontainers/umoci/oci/cas/dir"
3435
"github.com/opencontainers/umoci/oci/casext"
3536
"github.com/opencontainers/umoci/oci/casext/blobcompress"
3637
igen "github.com/opencontainers/umoci/oci/config/generate"
3738
"github.com/opencontainers/umoci/oci/layer"
38-
"github.com/opencontainers/umoci/pkg/funchelpers"
3939
)
4040

4141
var insertCommand = uxCompress(uxRemap(uxHistory(uxTag(cli.Command{

cmd/umoci/new.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import (
2525
"github.com/urfave/cli"
2626

2727
"github.com/opencontainers/umoci"
28+
"github.com/opencontainers/umoci/internal/funchelpers"
2829
"github.com/opencontainers/umoci/oci/cas/dir"
2930
"github.com/opencontainers/umoci/oci/casext"
30-
"github.com/opencontainers/umoci/pkg/funchelpers"
3131
)
3232

3333
var newCommand = cli.Command{

cmd/umoci/raw-add-layer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ import (
3030
"github.com/urfave/cli"
3131

3232
"github.com/opencontainers/umoci"
33+
"github.com/opencontainers/umoci/internal/funchelpers"
3334
"github.com/opencontainers/umoci/mutate"
3435
"github.com/opencontainers/umoci/oci/cas/dir"
3536
"github.com/opencontainers/umoci/oci/casext"
3637
"github.com/opencontainers/umoci/oci/casext/blobcompress"
3738
igen "github.com/opencontainers/umoci/oci/config/generate"
38-
"github.com/opencontainers/umoci/pkg/funchelpers"
3939
)
4040

4141
var rawAddLayerCommand = uxCompress(uxHistory(uxTag(cli.Command{

cmd/umoci/raw-runtime-config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ import (
2929
"github.com/urfave/cli"
3030

3131
"github.com/opencontainers/umoci"
32+
"github.com/opencontainers/umoci/internal/funchelpers"
3233
"github.com/opencontainers/umoci/oci/cas/dir"
3334
"github.com/opencontainers/umoci/oci/casext"
3435
"github.com/opencontainers/umoci/oci/layer"
35-
"github.com/opencontainers/umoci/pkg/funchelpers"
3636
)
3737

3838
var rawConfigCommand = uxRemap(cli.Command{

cmd/umoci/raw-unpack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ import (
2828
"github.com/urfave/cli"
2929

3030
"github.com/opencontainers/umoci"
31+
"github.com/opencontainers/umoci/internal/funchelpers"
3132
"github.com/opencontainers/umoci/oci/cas/dir"
3233
"github.com/opencontainers/umoci/oci/casext"
3334
"github.com/opencontainers/umoci/oci/layer"
34-
"github.com/opencontainers/umoci/pkg/funchelpers"
3535
)
3636

3737
var rawUnpackCommand = uxRemap(cli.Command{

cmd/umoci/repack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ import (
2929
"github.com/urfave/cli"
3030

3131
"github.com/opencontainers/umoci"
32+
"github.com/opencontainers/umoci/internal/funchelpers"
3233
"github.com/opencontainers/umoci/mutate"
3334
"github.com/opencontainers/umoci/oci/cas/dir"
3435
"github.com/opencontainers/umoci/oci/casext"
3536
"github.com/opencontainers/umoci/oci/casext/blobcompress"
3637
igen "github.com/opencontainers/umoci/oci/config/generate"
37-
"github.com/opencontainers/umoci/pkg/funchelpers"
3838
"github.com/opencontainers/umoci/pkg/mtreefilter"
3939
)
4040

cmd/umoci/stat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import (
2929
"github.com/urfave/cli"
3030

3131
"github.com/opencontainers/umoci"
32+
"github.com/opencontainers/umoci/internal/funchelpers"
3233
"github.com/opencontainers/umoci/oci/cas/dir"
3334
"github.com/opencontainers/umoci/oci/casext"
34-
"github.com/opencontainers/umoci/pkg/funchelpers"
3535
)
3636

3737
var statCommand = cli.Command{

0 commit comments

Comments
 (0)