Switch common, storage and image to monorepo.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
Jan Kaluza
2025-09-01 10:52:33 +02:00
parent dedeb24e9f
commit a98154a978
1258 changed files with 3187 additions and 3716 deletions

View File

@@ -4,8 +4,8 @@ import (
"maps"
"slices"
"github.com/containers/image/v5/manifest"
dockerclient "github.com/fsouza/go-dockerclient"
"go.podman.io/image/v5/manifest"
)
// Schema2ConfigFromGoDockerclientConfig converts a go-dockerclient Config

View File

@@ -7,9 +7,9 @@ import (
"strings"
"github.com/containers/buildah/docker"
"github.com/containers/image/v5/manifest"
v1 "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/openshift/imagebuilder"
"go.podman.io/image/v5/manifest"
)
// firstStringElseSecondString takes two strings, and returns the first

View File

@@ -20,14 +20,14 @@ import (
"github.com/containers/buildah/internal/tmpdir"
"github.com/containers/buildah/pkg/overlay"
"github.com/containers/luksy"
"github.com/containers/storage/pkg/idtools"
"github.com/containers/storage/pkg/ioutils"
"github.com/containers/storage/pkg/mount"
"github.com/containers/storage/pkg/system"
"github.com/docker/go-units"
digest "github.com/opencontainers/go-digest"
v1 "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/sirupsen/logrus"
"go.podman.io/storage/pkg/idtools"
"go.podman.io/storage/pkg/ioutils"
"go.podman.io/storage/pkg/mount"
"go.podman.io/storage/pkg/system"
)
const minimumImageSize = 10 * 1024 * 1024

View File

@@ -15,8 +15,8 @@ import (
"strings"
"github.com/containers/buildah/internal/mkcw/types"
"github.com/containers/storage/pkg/fileutils"
"github.com/sirupsen/logrus"
"go.podman.io/storage/pkg/fileutils"
)
type (

View File

@@ -8,8 +8,8 @@ import (
"os"
"strings"
"github.com/containers/storage/pkg/reexec"
"github.com/sirupsen/logrus"
"go.podman.io/storage/pkg/reexec"
"golang.org/x/sys/unix"
)

View File

@@ -10,7 +10,7 @@ import (
"os"
"syscall"
"github.com/containers/storage/pkg/reexec"
"go.podman.io/storage/pkg/reexec"
"golang.org/x/sys/unix"
)

View File

@@ -5,9 +5,9 @@ import (
"path/filepath"
"strings"
"github.com/containers/common/pkg/parse"
"github.com/containers/storage/pkg/fileutils"
specs "github.com/opencontainers/runtime-spec/specs-go"
"go.podman.io/common/pkg/parse"
"go.podman.io/storage/pkg/fileutils"
)
// ValidateVolumeMountHostDir validates the host path of buildah --volume

View File

@@ -4,8 +4,8 @@ import (
"os"
"path/filepath"
"github.com/containers/common/pkg/config"
"github.com/sirupsen/logrus"
"go.podman.io/common/pkg/config"
)
// GetTempDir returns the path of the preferred temporary directory on the host.

View File

@@ -7,14 +7,14 @@ import (
"path/filepath"
"github.com/containers/buildah/define"
"github.com/containers/common/libimage"
lplatform "github.com/containers/common/libimage/platform"
"github.com/containers/image/v5/types"
"github.com/containers/storage"
"github.com/containers/storage/pkg/archive"
"github.com/containers/storage/pkg/chrootarchive"
"github.com/containers/storage/pkg/unshare"
v1 "github.com/opencontainers/image-spec/specs-go/v1"
"go.podman.io/common/libimage"
lplatform "go.podman.io/common/libimage/platform"
"go.podman.io/image/v5/types"
"go.podman.io/storage"
"go.podman.io/storage/pkg/archive"
"go.podman.io/storage/pkg/chrootarchive"
"go.podman.io/storage/pkg/unshare"
)
// LookupImage returns *Image to corresponding imagename or id

View File

@@ -6,8 +6,8 @@ import (
"os"
"github.com/containers/buildah/internal/open"
"github.com/containers/storage/pkg/mount"
"github.com/sirupsen/logrus"
"go.podman.io/storage/pkg/mount"
"golang.org/x/sys/unix"
)

View File

@@ -19,17 +19,17 @@ import (
internalUtil "github.com/containers/buildah/internal/util"
"github.com/containers/buildah/pkg/overlay"
"github.com/containers/buildah/util"
"github.com/containers/common/pkg/parse"
"github.com/containers/image/v5/types"
"github.com/containers/storage"
"github.com/containers/storage/pkg/idtools"
"github.com/containers/storage/pkg/lockfile"
"github.com/containers/storage/pkg/mount"
"github.com/containers/storage/pkg/unshare"
digest "github.com/opencontainers/go-digest"
specs "github.com/opencontainers/runtime-spec/specs-go"
selinux "github.com/opencontainers/selinux/go-selinux"
"github.com/sirupsen/logrus"
"go.podman.io/common/pkg/parse"
"go.podman.io/image/v5/types"
"go.podman.io/storage"
"go.podman.io/storage/pkg/idtools"
"go.podman.io/storage/pkg/lockfile"
"go.podman.io/storage/pkg/mount"
"go.podman.io/storage/pkg/unshare"
)
const (