I had a package published that I didn't realize I had set as private repository, and have now moved it to public, but it seems that the cache needs to be cleared in order for me to retrieve my package?
go: github.com/syntaqx/api/cmd/api imports
github.com/syntaqx/env: github.com/syntaqx/env@v0.0.1: verifying module: github.com/syntaqx/env@v0.0.1: reading https://sum.golang.org/lookup/github.com/syntaqx/env@v0.0.1: 404 Not Found
server response:
not found: github.com/syntaqx/env@v0.0.1: invalid version: git ls-remote -q origin in /tmp/gopath/pkg/mod/cache/vcs/fb1cfdd3dcc7a44f948c31fc36b294ef2e1e20e2680a73e1c471f820a9801dcb: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
Confirm the import path was entered correctly.
If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.
https://github.com/syntaqx/env
Update
The Request “github.com/syntaqx/env”
button has reappeared, so I'm hoping that things will work once it updates.
Comment From: gabyhelp
Similar Issues
- https://github.com/golang/go/issues/53411
- https://github.com/golang/go/issues/35990
- https://github.com/golang/go/issues/41887
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
Comment From: syntaqx
It seems the cache cleared after a frustrating amount of time, but the issue is resolved. Thanks!