Skip to content

Commit

Permalink
inspect function support resolving shortname
Browse files Browse the repository at this point in the history
Signed-off-by: 24sama <[email protected]>
  • Loading branch information
24sama committed Feb 10, 2023
1 parent 763079c commit 0ba9e96
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/buildah/inspect.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"text/template"

"github.com/containers/common/pkg/retry"
"github.com/containers/image/v5/docker/reference"
"github.com/containers/image/v5/manifest"
"github.com/containers/image/v5/pkg/shortnames"
"github.com/opencontainers/go-digest"
Expand Down Expand Up @@ -259,10 +258,6 @@ func inspectImage(ctx context.Context, sc *types.SystemContext, store storage.St
if err != nil {
return nil, nil, fmt.Errorf("error resolve shortname %s: %w", imgName, storage.ErrImageUnknown)
}
// also try out the "docker.io/" prefixed image
if dockerNamed, err := reference.ParseDockerRef(imgName); err == nil {
candidates = append(candidates, dockerNamed)
}

var errs []error
for _, candidate := range candidates {
Expand Down

0 comments on commit 0ba9e96

Please sign in to comment.