go mod tidy keeps pulling a version that doesn't exist
Go 1.22.5, module mode, no vendor dir. After I added a dependency go mod tidy started failing with go: github.com/foo/bar@v1.3.2: reading github.com/foo/bar/go.mod at revision v1.3.2: unknown revision v1.3.2. The tag is definitely on GitHub, I checked. Tried go clean -modcache, deleted go.sum, ran GOPROXY=direct go mod tidy. Same thing. There's a replace directive in go.mod pointing at a local fork from when I was debugging last week. Could that be it? About to blow away the whole module and start over.
3 replies