go-bip32
go-bip32 copied to clipboard
Error importing module
Hello,
Importing the module with go mod I obtain:
go: github.com/tyler-smith/[email protected] requires
launchpad.net/[email protected]: bzr branch --use-existing-dir -- https://launchpad.net/~niemeyer/gocheck/trunk
With go v.1.20
Similar issue:
go: github.com/tyler-smith/[email protected] requires
launchpad.net/[email protected]:
unrecognized import path "launchpad.net/gocheck":
GOVCS disallows using bzr for public launchpad.net/gocheck;
see 'go help vcs'
, after I have temporarily added go env -w GOVCS=private:all,public:all
I still got the following error:
go: github.com/tyler-smith/[email protected] requires
launchpad.net/[email protected]:
bzr branch --use-existing-dir -- https://launchpad.net/~niemeyer/gocheck/trunk .
in /home/user/go/pkg/mod/cache/vcs/f46ce2ae80d31f9b0a29099baa203e3b6d269dace4e5357a2cf74bd109e13339:
exec: "bzr": executable file not found in $PATH
So to solve the second issue I run sudo apt install bzr
for ubuntu or sudo dnf install bzr
for fedora.
The error should disappear.
For sake of safety you should put your VCS into original state or go env -w GOVCS=
.