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

Rename tfgen to codegen #1279

Merged
merged 6 commits into from
Jan 13, 2025
Merged

Rename tfgen to codegen #1279

merged 6 commits into from
Jan 13, 2025

Conversation

t0yv0
Copy link
Member

@t0yv0 t0yv0 commented Jan 10, 2025

For NoUpstream providers typically the terraform bits are not relevant, so code generator binary should be called pulumi-gen-provider not pulumi-tfgen-provider.

@t0yv0
Copy link
Member Author

t0yv0 commented Jan 10, 2025

This change is part of the following stack:

Change managed by git-spice.

@t0yv0 t0yv0 changed the title Rename download-tfgen to download-codegen Rename tfgen to codegen Jan 10, 2025
@t0yv0 t0yv0 force-pushed the t0yv0/generalize-codegen-binary branch from 9d74113 to 9d43ff9 Compare January 10, 2025 23:15
@@ -1,17 +1,17 @@
name: Download the tfgen binary
description: Downloads the tfgen binary to `bin/`.
name: Download the code generator binary
Copy link
Member Author

Choose a reason for hiding this comment

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

These should just be cosmetic renames.

@t0yv0 t0yv0 marked this pull request as ready for review January 10, 2025 23:16
@t0yv0 t0yv0 requested review from rquitales and corymhall January 10, 2025 23:16
@@ -9,7 +9,11 @@ PROVIDER_PATH := provider/v#{{ .Config.MajorVersion }}#
PROVIDER_PATH := provider
#{{- end }}#
VERSION_PATH := $(PROVIDER_PATH)/pkg/version.Version
#{{- if .Config.NoUpstream }}#
TFGEN := pulumi-gen-$(PACK)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: we could also rename TFGEN to something like SCHEMA_GEN or PROVIDER_GEN

@@ -9,7 +9,11 @@ PROVIDER_PATH := provider/v#{{ .Config.MajorVersion }}#
PROVIDER_PATH := provider
#{{- end }}#
VERSION_PATH := $(PROVIDER_PATH)/pkg/version.Version
#{{- if .Config.NoUpstream }}#
TFGEN := pulumi-gen-$(PACK)
#{{- else }}#
TFGEN := pulumi-tfgen-$(PACK)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we be renaming tfgen everywhere to just gen?

Copy link
Member

Choose a reason for hiding this comment

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

It might be safer to keep the binary name as tfgen for now until we can be sure that renaming the binary won't break other hardcoded workflows.

Copy link
Member Author

Choose a reason for hiding this comment

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

Should we be renaming tfgen everywhere to just gen

Possible in principle with some source migrations but that'd take some care to roll out, I opt for the easier branch here for now.

Base automatically changed from t0yv0/generalize-bridged-template to master January 13, 2025 18:37
@t0yv0 t0yv0 force-pushed the t0yv0/generalize-codegen-binary branch from b97be93 to 762aa5a Compare January 13, 2025 18:48
@t0yv0 t0yv0 enabled auto-merge January 13, 2025 18:48
@t0yv0 t0yv0 added this pull request to the merge queue Jan 13, 2025
github-merge-queue bot pushed a commit that referenced this pull request Jan 13, 2025
For NoUpstream providers typically the terraform bits are not relevant,
so code generator binary should be called `pulumi-gen-provider` not
`pulumi-tfgen-provider`.
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 13, 2025
@t0yv0 t0yv0 force-pushed the t0yv0/generalize-codegen-binary branch from 762aa5a to a116210 Compare January 13, 2025 19:06
@t0yv0 t0yv0 enabled auto-merge January 13, 2025 19:06
@t0yv0 t0yv0 added this pull request to the merge queue Jan 13, 2025
Merged via the queue into master with commit 0a93480 Jan 13, 2025
6 checks passed
@t0yv0 t0yv0 deleted the t0yv0/generalize-codegen-binary branch January 13, 2025 19:17
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.

4 participants