-
Notifications
You must be signed in to change notification settings - Fork 6
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
Rename tfgen to codegen #1279
Conversation
This change is part of the following stack: Change managed by git-spice. |
9d74113
to
9d43ff9
Compare
@@ -1,17 +1,17 @@ | |||
name: Download the tfgen binary | |||
description: Downloads the tfgen binary to `bin/`. | |||
name: Download the code generator binary |
There was a problem hiding this comment.
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.
@@ -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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
b97be93
to
762aa5a
Compare
For NoUpstream providers typically the terraform bits are not relevant, so code generator binary should be called `pulumi-gen-provider` not `pulumi-tfgen-provider`.
It used to be called pulumi-tfgen-${PROVIDER} but will be called pulumi-gen-${PROVIDER}
762aa5a
to
a116210
Compare
For NoUpstream providers typically the terraform bits are not relevant, so code generator binary should be called
pulumi-gen-provider
notpulumi-tfgen-provider
.