Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: containers/image
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5637ea62f52cd492533ac7e3a6b88972938c8080
Choose a base ref
..
head repository: containers/image
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e5ea852db8337f2fac966466bf1a81767464ed2f
Choose a head ref
Showing with 6 additions and 6 deletions.
  1. +1 −1 Makefile
  2. +5 −5 pkg/shortnames/shortnames.go
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ tools: .install.gitvalidation .install.golangci-lint .install.golint

.install.golangci-lint:
if [ ! -x "$(GOBIN)/golangci-lint" ]; then \
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(GOBIN) v1.21.0; \
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(GOBIN) v1.35.2; \
fi

.install.golint:
10 changes: 5 additions & 5 deletions pkg/shortnames/shortnames.go
Original file line number Diff line number Diff line change
@@ -240,14 +240,14 @@ func Resolve(ctx *types.SystemContext, name string) (*Resolved, error) {

// Create a copy of the system context to make it usable beyond this
// function call.
var sys *types.SystemContext
if ctx != nil {
sys = &(*ctx)
copy := *ctx
ctx = &copy
}
resolved.systemContext = ctx

// Detect which mode we're running in.
mode, err := sysregistriesv2.GetShortNameMode(sys)
mode, err := sysregistriesv2.GetShortNameMode(ctx)
if err != nil {
return nil, err
}
@@ -276,7 +276,7 @@ func Resolve(ctx *types.SystemContext, name string) (*Resolved, error) {
resolved.userInput = shortNameRepo

// If there's already an alias, use it.
namedAlias, aliasOriginDescription, err := sysregistriesv2.ResolveShortNameAlias(sys, shortNameRepo.String())
namedAlias, aliasOriginDescription, err := sysregistriesv2.ResolveShortNameAlias(ctx, shortNameRepo.String())
if err != nil {
return nil, err
}
@@ -307,7 +307,7 @@ func Resolve(ctx *types.SystemContext, name string) (*Resolved, error) {
resolved.rationale = rationaleUSR

// Query the registry for unqualified-search registries.
unqualifiedSearchRegistries, usrConfig, err := sysregistriesv2.UnqualifiedSearchRegistriesWithOrigin(sys)
unqualifiedSearchRegistries, usrConfig, err := sysregistriesv2.UnqualifiedSearchRegistriesWithOrigin(ctx)
if err != nil {
return nil, err
}