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

chore: remove make tfgen from goreleaser #159

Merged
merged 2 commits into from
Aug 20, 2024
Merged

chore: remove make tfgen from goreleaser #159

merged 2 commits into from
Aug 20, 2024

Conversation

ocobles
Copy link
Contributor

@ocobles ocobles commented Aug 20, 2024

The make tfgen target currently generate examples and that step is not necessary at all here since we only want to generate the provider

Removed entirely as per comment #159 (comment)

This comes from the discussion in #152 (comment)

Copy link

Does the PR have any schema changes?

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

Maintainer note: consult the runbook for dealing with any breaking changes.

.goreleaser.yml Outdated
@@ -7,7 +7,7 @@ archives:
name_template: "{{ .Binary }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}"
before:
hooks:
- make tfgen
- make only_tfgen
Copy link
Contributor

Choose a reason for hiding this comment

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

I was referring to

- name: Build tfgen binary
run: make only_tfgen

So it looks like we run make only_tfgen, create the GH release, and then run make tfgen again via goreleaser? In that case I think we could remove this hook entirely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep I think you're right

Signed-off-by: Oscar Cobles <[email protected]>
@ocobles ocobles changed the title chore: use only_tfgen instead of tfgen in goreleaser chore: remove make tfgen from goreleaser Aug 20, 2024
@ctreatma ctreatma merged commit 6ba765c into main Aug 20, 2024
17 checks passed
@ctreatma ctreatma deleted the update-goreleaser branch August 20, 2024 17:36
ctreatma pushed a commit that referenced this pull request Aug 20, 2024
we need #159 merged before
this one to make sure that no new changes are discovered during the
release process (the `toolchain go1.22.6` in go.mod in the examples
depends on the go version installed locally. In my case I have 1.22.5
while in the GH action we have 1.22.x so it can take a newer version)

---------

Signed-off-by: Oscar Cobles <[email protected]>
Copy link

This PR is included in version 0.15.0 🎉

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.

2 participants