go-bip32 icon indicating copy to clipboard operation
go-bip32 copied to clipboard

Error importing module

Open gianlucamazza opened this issue 4 years ago • 1 comments

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 

gianlucamazza avatar Jan 18 '21 23:01 gianlucamazza

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=.

fairking avatar Oct 20 '23 01:10 fairking