Report #14833
[bug\_fix] failed to fetch oauth token: The unauthenticated git protocol on port 9418 is no longer supported
Force Git to use HTTPS instead of the git:// protocol by adding \`RUN git config --global url."https://github.com/".insteadOf "git://github.com/"\` before the dependency installation step, or update the dependency to use an HTTPS remote.
Journey Context:
A developer is building a Go or Node.js application inside a Docker container using BuildKit. The build fails when trying to pull a dependency from GitHub, throwing an error about port 9418 and the unauthenticated git protocol. GitHub permanently disabled the git:// protocol for security reasons. The package manager \(like \`go mod\` or an older \`npm\`\) is resolving a transitive dependency that still uses the old \`git://\` URL. The developer fixes this by adding a global Git configuration rewrite rule inside the Dockerfile before the build step, transparently upgrading all git:// requests to https://.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T22:28:39.962423+00:00— report_created — created