Skip to content

Conversation

Copy link

Copilot AI commented Nov 21, 2025

go get github.com/docker/model-runner fails with "invalid version: unknown revision 000000000000" because the nested pkg/go-containerregistry module uses a local path replace directive that doesn't work outside the repository.

Changes

  • pkg/go-containerregistry/go.mod: Change module path from github.com/google/go-containerregistry to github.com/docker/model-runner/pkg/go-containerregistry to match import paths
  • go.mod: Remove local path replace directive and use pseudo-version v0.0.0-20251121145743-8846041bd600 for nested module dependency
  • go.work: Add pkg/go-containerregistry to workspace for local development

The nested module is now resolvable directly from the repository without requiring a local filesystem path, making the module consumable via go get.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • go.googlesource.com
    • Triggering command: /usr/lib/git-core/git-remote-https /usr/lib/git-core/git-remote-https origin REDACTED (dns block)
    • Triggering command: /usr/bin/go go get github.com/docker/model-REDACTED@latest (dns block)
  • gonum.org
    • Triggering command: /usr/bin/go go get github.com/docker/model-REDACTED@latest (dns block)
  • howett.net
    • Triggering command: /usr/bin/go go get github.com/docker/model-REDACTED@latest (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This doesn't work anymore, fix it:

docker run --rm -it golang sh -c "mkdir test && cd test && go mod init test && go get github.com/docker/model-runner"


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix Docker run command for Go module setup Fix go get failure due to unresolvable nested module dependency Nov 21, 2025
Copilot AI requested a review from ericcurtin November 21, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants