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

Add major version to go module name #46

Merged
merged 2 commits into from
Nov 21, 2024
Merged

Conversation

hugoShaka
Copy link
Contributor

@hugoShaka hugoShaka commented Nov 20, 2024

This PR adds the major verison to the module name so specific version can be installed with go install directly.

I will create a tag for v3.0.1 after merging this PR.

You can test by running

go install github.com/gravitational/protoc-gen-terraform/[email protected]

Fixes #37 starting with 3.0.1

@hugoShaka hugoShaka changed the title Hugo/version repo properly Add major version to go module name Nov 20, 2024
@@ -1,4 +1,4 @@
module github.com/gravitational/protoc-gen-terraform
module github.com/gravitational/protoc-gen-terraform/v3

go 1.18
Copy link
Contributor

Choose a reason for hiding this comment

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

😱

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, this repo does not receive much love. On the other hand I don't see why we should increase the go version if we are not forced by a dependency. Lowest versions offer better compatibility.

Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we should move it to be near the terraform provider, just like we have the crd generator

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This code is not maintained a lot today and I don't think we can bump all the dependencies. If we vendor it, we'll have to appease all the security checks, linters and other dependency checkers. I'm happy to keep it outside for now, like the https://github.com/gravitational/terraform-plugin-docs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also it seems some people outside of Teleport are using the protoc plugin to generate provider

@hugoShaka hugoShaka merged commit 4262993 into main Nov 21, 2024
2 checks passed
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.

Published Version Tags / Releases
3 participants