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

fix: installation of plugins for Go v1.18 and above #2174

Merged
merged 2 commits into from
Mar 18, 2022

Conversation

dave
Copy link
Contributor

@dave dave commented Mar 17, 2022

This fixes #2171, 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. This fixes the problem for now, but adds plugin specific items to the go.mod of the scaffolded project, which shouldn't be there.

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
ilgooz previously approved these changes Mar 18, 2022
Copy link
Member

@ilgooz ilgooz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing up this! 🎊

starport/pkg/cosmosgen/install.go Outdated Show resolved Hide resolved
@ilgooz ilgooz changed the title Run go install after go get to install plugins fix: installation of plugins for Go v1.18 and above Mar 18, 2022
@ilgooz ilgooz merged commit 565c2f3 into ignite:develop Mar 18, 2022
ilgooz added a commit that referenced this pull request 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 <ilkergoktugozturk@gmail.com>
Jchicode pushed a commit to Jchicode/cli that referenced this pull request 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 <ilkergoktugozturk@gmail.com>
Jchicode pushed a commit to Jchicode/cli that referenced this pull request 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 <ilkergoktugozturk@gmail.com>
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

Successfully merging this pull request may close these issues.

protoc-gen-gocosmos: program not found or is not executable
2 participants