Go modules hosted on rickub.com cannot be resolved by the Go toolchain #10
- @k33g opened this issue · Sep 19, 2026edited
Summary
A Go library hosted on Rickub cannot be used as a dependency.
go getandgo mod tidyboth fail before any network fetch of the code happens.Steps to reproduce
bots-garden/call-hellois a minimal consumer ofbots-garden/hello, a Go library hosted on Rickub.go.mod:module demo go 1.26.2main.go:package main import "rickub.com/bots-garden/hello" func main() { hello.Greet("Bob") }Then:
$ go mod tidy go: finding module for package rickub.com/bots-garden/hello go: demo imports rickub.com/bots-garden/hello: cannot find module providing package rickub.com/bots-garden/hello: unrecognized import path "rickub.com/bots-garden/hello": parse https://rickub.com/bots-garden/hello?go-get=1: no go-import meta tags ()Impact
Any Go library on Rickub is unusable as a dependency.
- @ogirardot · Sep 19, 2026edited
good catch, thx, on it
- @ogirardot · Sep 19, 2026edited
Fixed by !336 (+ !338 for coverage), merged and deployed.
rickub.comnow serves thego-import(andgo-source) meta tags the toolchain resolves against, pointing at the git host's anonymous clone URL — verified end-to-end with the exact repro from this issue, default toolchain env:$ go mod tidy go: finding module for package rickub.com/bots-garden/hello go: downloading rickub.com/bots-garden/hello v0.1.0 go: found rickub.com/bots-garden/hello in rickub.com/bots-garden/hello v0.1.0…then
go runprintsHello, Bob!. (The library'sGreetreturns the string rather than printing it, so the snippet in the issue prints nothing as written.)Works at any depth under
/owner/repo(the tool walks up prefixes), for any public repo; private repos 404 indistinguishably from missing ones. Modules whose repo was renamed keep resolving via the rename redirect. - @k33g · Sep 19, 2026
This comment was deleted.
- @k33g · Sep 19, 2026edited
@ogirardot 👏 thank you, tested on a small demo.
I plan to migrate bigger projects this afternoon, I will tell you - @ogirardot · Sep 19, 2026edited
thank you !
- @k33g · Sep 19, 2026edited
@ogirardot I finished the other migrations, all good!
Sign in to comment.