-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 flag to specify whether to install dependencies on pulumi convert
#10198
Conversation
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.
Short and sweet.
@@ -128,5 +131,9 @@ func newConvertCmd() *cobra.Command { | |||
//nolint:lll | |||
&outDir, "out", ".", "The output directory to write the convert project to") | |||
|
|||
cmd.PersistentFlags().BoolVar( | |||
//nolint:lll | |||
&installDeps, "install-dependencies", true, "Whether to install dependencies specified in the pulumi project") |
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.
maybe consider --no-install-dependencies? since the flag should change behavior.
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.
this flag might imply to the user that dependencies are not installed by default, but they are.
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.
Yeh I feel this should of copied 'new' https://github.com/pulumi/pulumi/blob/master/pkg/cmd/pulumi/new.go#L483 and be 'generate-only'
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.
You may know it - but just in case: the text |
I did not know this before 🙌🏼 |
Description
Add
install-dependencies
flag to allow user to opt out of installing dependencies onpulumi convert
if they only want the generated files. Defaults to `true.Addresses #10196
Checklist