-
Notifications
You must be signed in to change notification settings - Fork 552
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
protoc-gen-gocosmos: program not found or is not executable #2171
Comments
We had a similar issue a while back: #1584 Can you, please, provide the output of |
export GOROOT=/usr/local/go
|
I'm having the same problem... It looks like protoc-gen-gocosmos is installed here... I think you need to run
|
OK you can get this working by running However, without removing the replace directive from the gocosmos project, it might be impossible to install it globally? @aaronc might want to take a look at this. |
I find the "protoc-gen-gocosmos" package in GOPATH/pkg/mod/github.com/regen-network/[email protected] |
I don't think this should be closed... there is definitely a bug in starport code... |
When scaffolding a chain Starport installs
Hence, the question is the same, what is the output of the following command on your machine:
|
I'm pretty sure this is not the case for later versions of Go... I'm using Go 1.18 and it definitely doesn't work like that. The installer just runs |
Consider these commands:
[1, 2, 3] Creates a new go module and initialises. |
Newer versions of Go have changed the behaviour of Running However, running |
I may be found the problem.I'm not logged in as root, and golang is install in /usr/local/bin. |
I face the same issues, I believe the issue is traced to the following deprecation of "go get" from Go 1.18, go get will no longer build packages: I overcame the issue by reinstalling Go 1.17.8 instead. I would suggest raising a pull request to change "get" command with "install" command. |
Thank you all of you for raising this up and thanks @dave for the PR! The fix has been merged to develop and it'll we be released soon with a point release (v0.19.5). Meanwhile, if you don't want to wait, you can install Starport CLI Nightly from here. Be aware that Nightly version is built from develop and it may contain features that may not be shipped by v0.19.5. Please let us know if your problem persists after upgrading, happy weekend! |
For those who were experiencing See how to upgrade: https://docs.starport.network/guide/install.html#upgrading-your-starport-installation |
Describe the bug
error while running command /tmp/protoc194239331: mars/query.proto:6:1: warning: Import cosmos/base/query/v1beta1/pagination.proto is unused.
protoc-gen-gocosmos: program not found or is not executable
Please specify a program using absolute path or make sure the program is available in your PATH system variable
--gocosmos_out: protoc-gen-gocosmos: Plugin failed with status code 1.
: exit status 1
Please provide the version output
Starport version: v0.19.2
Starport build date: 2022-01-19T11:16:41Z
Starport source hash: -
Your OS: linux
Your arch: amd64
Your go version: go version go1.18 linux/amd64
The text was updated successfully, but these errors were encountered: