Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error importing module #19

Open
gianlucamazza opened this issue Jan 18, 2021 · 1 comment
Open

Error importing module #19

gianlucamazza opened this issue Jan 18, 2021 · 1 comment

Comments

@gianlucamazza
Copy link

Hello,

Importing the module with go mod I obtain:

go: github.com/tyler-smith/go-bip32@v1.0.0 requires
	launchpad.net/gocheck@v0.0.0-20140225173054-000000000087: bzr branch --use-existing-dir -- https://launchpad.net/~niemeyer/gocheck/trunk 
@fairking
Copy link

fairking commented Oct 20, 2023

With go v.1.20

Similar issue:

go: github.com/tyler-smith/go-bip32@v1.0.0 requires
        launchpad.net/gocheck@v0.0.0-20140225173054-000000000087: 
        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/go-bip32@v1.0.0 requires
        launchpad.net/gocheck@v0.0.0-20140225173054-000000000087: 
        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=.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants