-
Notifications
You must be signed in to change notification settings - Fork 152
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
Description
What happened?
Running make test fails before any Go tests run because the Makefile builds a Docker builder image (to run tests inside a container). The Docker pull step fails with:
ERROR: failed to solve: golang:1.24.4-bullseye: failed to resolve source metadata for docker.io/library/golang:1.24.4-bullseye: error getting credentials - err: exec: "docker-credential-desktop.exe": executable file not found in $PATH, out: ``
This occurs when:
- WSL (Windows Subsystem for Linux) is used with Docker Desktop: the Docker config in
~/.docker/config.jsonoften referencesdocker-credential-desktop.exe, which is a Windows executable and is not in$PATHwhen runningmakefrom a Linux shell in WSL. - Other environments where the configured Docker credential helper is not available in the environment that runs
make test.
What did you expect to happen?
- Either
make testto succeed in WSL (and similar environments), or - Clear documentation on how to run tests without Docker (e.g. unit tests via
go test, integration tests via envtest) so CI and local workflows are reproducible.
Environment
- OS: Linux (WSL2), Windows host with Docker Desktop
- Docker: Docker Desktop with credential helper
docker-credential-desktop.exe - Reproduction: Run
make testfrom WSL; builder image build fails on pull with the credential error above.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers