mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
misc: address double import
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
This commit is contained in:
parent
a2a3b4f00f
commit
43c2359705
1 changed files with 2 additions and 3 deletions
|
|
@ -28,7 +28,6 @@ import (
|
|||
"github.com/google/go-containerregistry/pkg/crane"
|
||||
"github.com/google/go-containerregistry/pkg/logs"
|
||||
"github.com/google/go-containerregistry/pkg/name"
|
||||
reg "github.com/google/go-containerregistry/pkg/name"
|
||||
"github.com/google/go-containerregistry/pkg/v1/remote"
|
||||
"github.com/google/go-containerregistry/pkg/v1/remote/transport"
|
||||
"github.com/spf13/cobra"
|
||||
|
|
@ -266,12 +265,12 @@ func pushArtifactCmdRun(cmd *cobra.Command, args []string) error {
|
|||
return fmt.Errorf("pushing artifact failed: %w", err)
|
||||
}
|
||||
|
||||
digest, err := reg.NewDigest(digestURL)
|
||||
digest, err := name.NewDigest(digestURL)
|
||||
if err != nil {
|
||||
return fmt.Errorf("artifact digest parsing failed: %w", err)
|
||||
}
|
||||
|
||||
tag, err := reg.NewTag(url)
|
||||
tag, err := name.NewTag(url)
|
||||
if err != nil {
|
||||
return fmt.Errorf("artifact tag parsing failed: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue