mirror of
https://github.com/containers/podman.git
synced 2026-03-13 08:01:19 +08:00
libpod: fix build
In the currently used go.podman.io/common/pkg/libartifact version
there is no store subpackage (yet). Fix the import statement and
usage accordingly.
Fixes: df0e3b6ec7 ("libpod: move artifact volume validation to creation phase"
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
"github.com/containers/podman/v6/libpod/define"
|
||||
spec "github.com/opencontainers/runtime-spec/specs-go"
|
||||
"go.podman.io/common/pkg/libartifact/store"
|
||||
"go.podman.io/common/pkg/libartifact"
|
||||
"go.podman.io/image/v5/docker"
|
||||
"go.podman.io/image/v5/pkg/shortnames"
|
||||
"go.podman.io/image/v5/transports/alltransports"
|
||||
@@ -185,7 +185,7 @@ func (c *Container) validate() error {
|
||||
return err
|
||||
}
|
||||
for _, artifactMount := range c.config.ArtifactVolumes {
|
||||
asr, err := store.NewArtifactStorageReference(artifactMount.Source)
|
||||
asr, err := libartifact.NewArtifactStorageReference(artifactMount.Source)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user