go mod replace only works if target has go.mod:
https://github.com/golang/go/issues/30847
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This doesn't look like a correct Go module name:
$ go get llvm.org/llvm/bindings/go/llvm go get: unrecognized import path "llvm.org/llvm/bindings/go/llvm": GOVCS disallows using svn for public llvm.org/llvm; see 'go help vcs'
I see two options:
- Add the go-import meta tag, see https://gianarb.it/blog/go-mod-vanity-url for example.
- Use github.com/llvm/llvm-project/llvm/bindings/go/llvm instead.
The first one might be the cleaner option, while the second one will likely be easier to implement.