[go: nahoru, domu]

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

Install failed #118

Closed
Poil opened this issue Jul 30, 2021 · 3 comments
Closed

Install failed #118

Poil opened this issue Jul 30, 2021 · 3 comments

Comments

@Poil
Copy link
Poil commented Jul 30, 2021

Hi,

I've got this error when trying to install

$ go get github.com/ankitpokhrel/jira-cli/cmd/jira
package github.com/russross/blackfriday/v2: cannot find package "github.com/russross/blackfriday/v2" in any of:
	/usr/lib/go-1.13/src/github.com/russross/blackfriday/v2 (from $GOROOT)
	/home/bdupuis/go/src/github.com/russross/blackfriday/v2 (from $GOPATH)

Installing after installing blackfriday v2 works

go get github.com/russross/blackfriday/v2

Best regards,

@ankitpokhrel
Copy link
Owner

Hi @Poil I am not able to reproduce the issue. I tried with go1.13 (and above) and the installation seems to be working fine. Could you please provide more context?

@ankitpokhrel ankitpokhrel added the waiting for response Waiting for users response label Aug 22, 2021
@dja-fr
Copy link
dja-fr commented Sep 8, 2021

Hello,

Same here :

go get github.com/ankitpokhrel/jira-cli/cmd/jira
cannot find package "github.com/russross/blackfriday/v2" in any of:
        c:\go\src\github.com\russross\blackfriday\v2 (from $GOROOT)
        C:\Users\dja\go\src\github.com\russross\blackfriday\v2 (from $GOPATH)
cannot find package "github.com/hashicorp/hcl/hcl/printer" in any of:
        c:\go\src\github.com\hashicorp\hcl\hcl\printer (from $GOROOT)
        C:\Users\dja\go\src\github.com\hashicorp\hcl\hcl\printer (from $GOPATH)

My environnement

  • windows
  • go version 1.15.7

Could be related to : russross/blackfriday#500 ?

@ankitpokhrel
Copy link
Owner

I think we don't have this issue when using go install which is now a recommended way to install the executables.

From the docs:

go install, with or without a version suffix (as described above), is now the recommended way to build and install packages in module mode. go get should be used with the -d flag to adjust the current module's dependencies without building packages, and use of go get to build and install packages is deprecated. In a future release, the -d flag will always be enabled.

Also, since there are executables available for supported platforms now (see releases), installation should not be a problem.

I will close this issue but feel free to comment if you feel like this topic is unanswered.

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

No branches or pull requests

3 participants