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

Couldn't build #3

Closed
n8chz opened this issue Jul 26, 2022 · 1 comment
Closed

Couldn't build #3

n8chz opened this issue Jul 26, 2022 · 1 comment

Comments

@n8chz
Copy link

n8chz commented Jul 26, 2022

$ make build
cannot find package "github.com/ipfs/go-ipfs/cmd/ipfs" in any of:
	/snap/go/9848/src/github.com/ipfs/go-ipfs/cmd/ipfs (from $GOROOT)
	/home/lori/go/src/github.com/ipfs/go-ipfs/cmd/ipfs (from $GOPATH)
go version go1.18.3 linux/amd64
bin/check_go_version 1.17
plugin/loader/preload.sh > plugin/loader/preload.go
go fmt plugin/loader/preload.go >/dev/null
cannot find package "github.com/ipfs/go-ipfs/cmd/ipfs" in any of:
	/snap/go/9848/src/github.com/ipfs/go-ipfs/cmd/ipfs (from $GOROOT)
	/home/lori/go/src/github.com/ipfs/go-ipfs/cmd/ipfs (from $GOPATH)
go build  "-asmflags=all='-trimpath='" "-gcflags=all='-trimpath='" -ldflags="-X "github.com/ipfs/go-ipfs".CurrentCommit=811c26564" -o "cmd/ipfs/" ""
go: no main packages to build
make: *** [cmd/ipfs/Rules.mk:22: cmd/ipfs/] Error 1
@mar1n3r0
Copy link
Contributor

Seems like your $GOPATH was not set at the time of compiling since trimpath is empty.

https://stackoverflow.com/questions/21001387/how-do-i-set-the-gopath-environment-variable-on-ubuntu-what-file-must-i-edit

@mar1n3r0 mar1n3r0 closed this as completed Aug 3, 2022
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