Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes: Distribution API #17726 #25378

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Fixes: Distribution API #17726

6cd6176
Select commit
Loading
Failed to load commit list.
Draft

Fixes: Distribution API #17726 #25378

Fixes: Distribution API #17726
6cd6176
Select commit
Loading
Failed to load commit list.
Cirrus CI / Windows Cross failed Feb 21, 2025 in 2m 32s

Task Summary

Instruction main failed in 02:12

Details

✅ 00:15 clone
✅ 00:02 setup
❌ 02:12 main

passt-0^20250121.g4f2c8e7-2.fc41-x86_64
podman-5.4.0~rc3-1.fc41-x86_64
skopeo-1.17.0-1.fc41-x86_64
slirp4netns-1.3.1-1.fc41-x86_64
************************************************************
+ _run_altbuild  # /var/tmp/go/src/github.com/containers/podman/./contrib/cirrus/runner.sh:507 in main()
Performing alternate build: Windows Cross
************************************************************
+ cd /var/tmp/go/src/github.com/containers/podman
+ case "$ALT_NAME" in
+ showrun make .install.pre-commit
+ local -a context
+ context=($(caller 0))
++ caller 0
+ echo '+ make .install.pre-commit  # /var/tmp/go/src/github.com/containers/podman/./contrib/cirrus/runner.sh:274 in _run_altbuild()'
+ make .install.pre-commit  # /var/tmp/go/src/github.com/containers/podman/./contrib/cirrus/runner.sh:274 in _run_altbuild()
+ make .install.pre-commit
if [ -z "/usr/bin/pre-commit" ]; then \
	/usr/bin/python3 -m pip install --user pre-commit; \
fi
+ showrun make lint GOOS=windows CGO_ENABLED=0
+ local -a context
+ context=($(caller 0))
++ caller 0
+ echo '+ make lint GOOS=windows CGO_ENABLED=0  # /var/tmp/go/src/github.com/containers/podman/./contrib/cirrus/runner.sh:275 in _run_altbuild()'
+ make lint GOOS=windows CGO_ENABLED=0  # /var/tmp/go/src/github.com/containers/podman/./contrib/cirrus/runner.sh:275 in _run_altbuild()
+ make lint GOOS=windows CGO_ENABLED=0
VERSION=1.64.4 ./hack/install_golangci.sh
Installing golangci-lint v1.64.4 into ./bin/golangci-lint
golangci/golangci-lint info checking GitHub for tag 'v1.64.4'
golangci/golangci-lint info found version: 1.64.4 for v1.64.4/linux/amd64
golangci/golangci-lint info installed ./bin/golangci-lint
hack/golangci-lint.sh run

Running golangci-lint for REMOTE
Build Tags REMOTE: remote,containers_image_openpgp
Skipped directories REMOTE: libpod/events,pkg/machine/qemu,pkg/machine/wsl,test
+ ./bin/golangci-lint run --timeout=10m --build-tags=remote,containers_image_openpgp --exclude-dirs=libpod/events,pkg/machine/qemu,pkg/machine/wsl,test
pkg/api/handlers/compat/distribution.go:10:6: could not import github.com/containers/podman/v5/pkg/api/types (-: build constraints exclude all Go files in pkg/api/types) (typecheck)
	api "github.com/containers/podman/v5/pkg/api/types"
	    ^
pkg/api/handlers/compat/distribution.go:12:2: could not import github.com/containers/podman/v5/pkg/api/handlers/utils (-: build constraints exclude all Go files in pkg/api/handlers/utils) (typecheck)
	"github.com/containers/podman/v5/pkg/api/handlers/utils"
	^
pkg/api/handlers/compat/distribution.go:80:41: undefined: libpod.Runtime (typecheck)
func getRegistryService(runtime *libpod.Runtime) (*registry.Service, error) {
                                        ^
pkg/api/handlers/compat/distribution.go:48:56: undefined: libpod.Runtime (typecheck)
	runtime := r.Context().Value(api.RuntimeKey).(*libpod.Runtime)
	                                                      ^
pkg/api/handlers/compat/distribution.go:81:19: undefined: getServiceConfig (typecheck)
	serviceConfig := getServiceConfig(runtime)
	                 ^
make: *** [Makefile:286: golangci-lint] Error 1

Exit status: 2