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 while running protoc command #1163

Closed
anexponent opened this issue May 21, 2021 · 5 comments
Closed

Error while running protoc command #1163

anexponent opened this issue May 21, 2021 · 5 comments

Comments

@anexponent
Copy link

Go version: go version go1.16.4 linux/amd64
Node Version: v14.17.0
Protoc Version: libprotoc 3.15.8

Executing starport app github.com/user/planet generated the following error:

error while running command protoc: planet/query.proto:4:1: warning: Import google/api/annotations.proto is unused.
planet/query.proto:5: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

Although the directory planet is generated but scaffolding a module generated the following error:

error while running command protoc: planet/post.proto:6:1: warning: Import gogoproto/gogo.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

Note: I installed the protoc following this instruction here:

What could have possibly gone wrong?

@ilgooz
Copy link
Member

ilgooz commented May 21, 2021

Hey there! This should be no longer issue after latest improvements on develop (will be released next week).

Can you please git clone https://github.com/tendermint/starport and run go install ./... and try again?

Please remove any of your previous Starport installations beforehand.

@anexponent
Copy link
Author

Ok.. Thank you.

@ilgooz
Copy link
Member

ilgooz commented May 24, 2021

Hey, is your problem solved after running on develop?

@fadeev
Copy link
Contributor

fadeev commented May 28, 2021

This issue should be resolved in Starport v0.16. Please, reopen if it's still a problem.

@fadeev fadeev closed this as completed May 28, 2021
@anexponent
Copy link
Author

Hey, is your problem solved after running on develop?

Yes it got solved. Though I later used v0.15.1

dave added a commit to dave/starport-1 that referenced this issue Mar 17, 2022
This fixes ignite#1163, but is not ideal... tooling binaries should be installed by running `go install [path]@[version]`, but protoc-gen-gocosmos uses a replace directive in the `go.mod` which is [incompatible with this method](golang/go#44840 (comment)). This fixes the problem for now, but adds plugin specific items to the go.mod of the scaffolded project, which shouldn't be there.
ilgooz added a commit that referenced this issue Mar 18, 2022
* Run go install after go get to install plugins

This fixes #1163, but is not ideal... tooling binaries should be installed by running `go install [path]@[version]`, but protoc-gen-gocosmos uses a replace directive in the `go.mod` which is [incompatible with this method](golang/go#44840 (comment)). This fixes the problem for now, but adds plugin specific items to the go.mod of the scaffolded project, which shouldn't be there.

* Update starport/pkg/cosmosgen/install.go

Co-authored-by: İlker G. Öztürk <[email protected]>
ilgooz added a commit that referenced this issue Mar 18, 2022
* Run go install after go get to install plugins

This fixes #1163, but is not ideal... tooling binaries should be installed by running `go install [path]@[version]`, but protoc-gen-gocosmos uses a replace directive in the `go.mod` which is [incompatible with this method](golang/go#44840 (comment)). This fixes the problem for now, but adds plugin specific items to the go.mod of the scaffolded project, which shouldn't be there.

* Update starport/pkg/cosmosgen/install.go

Co-authored-by: İlker G. Öztürk <[email protected]>
tbruyelle pushed a commit to tbruyelle/cli-diet that referenced this issue Oct 17, 2022
* Run go install after go get to install plugins

This fixes ignite/cli#1163, but is not ideal... tooling binaries should be installed by running `go install [path]@[version]`, but protoc-gen-gocosmos uses a replace directive in the `go.mod` which is [incompatible with this method](golang/go#44840 (comment)). This fixes the problem for now, but adds plugin specific items to the go.mod of the scaffolded project, which shouldn't be there.

* Update starport/pkg/cosmosgen/install.go

Co-authored-by: İlker G. Öztürk <[email protected]>
Former-commit-id: 565c2f3f5316d8a70cdbf0706f385644a35ed8a4
tbruyelle pushed a commit to tbruyelle/cli-diet that referenced this issue Oct 17, 2022
* Run go install after go get to install plugins

This fixes ignite/cli#1163, but is not ideal... tooling binaries should be installed by running `go install [path]@[version]`, but protoc-gen-gocosmos uses a replace directive in the `go.mod` which is [incompatible with this method](golang/go#44840 (comment)). This fixes the problem for now, but adds plugin specific items to the go.mod of the scaffolded project, which shouldn't be there.

* Update starport/pkg/cosmosgen/install.go

Co-authored-by: İlker G. Öztürk <[email protected]>
Former-commit-id: 797ec0b9c86756ee93db44120c3b7c14a2fb6e1c
Jchicode pushed a commit to Jchicode/cli that referenced this issue Aug 9, 2023
* Run go install after go get to install plugins

This fixes ignite#1163, but is not ideal... tooling binaries should be installed by running `go install [path]@[version]`, but protoc-gen-gocosmos uses a replace directive in the `go.mod` which is [incompatible with this method](golang/go#44840 (comment)). This fixes the problem for now, but adds plugin specific items to the go.mod of the scaffolded project, which shouldn't be there.

* Update starport/pkg/cosmosgen/install.go

Co-authored-by: İlker G. Öztürk <[email protected]>
Jchicode pushed a commit to Jchicode/cli that referenced this issue Aug 9, 2023
* Run go install after go get to install plugins

This fixes ignite#1163, but is not ideal... tooling binaries should be installed by running `go install [path]@[version]`, but protoc-gen-gocosmos uses a replace directive in the `go.mod` which is [incompatible with this method](golang/go#44840 (comment)). This fixes the problem for now, but adds plugin specific items to the go.mod of the scaffolded project, which shouldn't be there.

* Update starport/pkg/cosmosgen/install.go

Co-authored-by: İlker G. Öztürk <[email protected]>
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

3 participants