Skip to content

env run not disambiguating args correctly #478

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

Open
tgummerer opened this issue Mar 11, 2025 · 0 comments
Open

env run not disambiguating args correctly #478

tgummerer opened this issue Mar 11, 2025 · 0 comments
Labels
kind/bug Some behavior is incorrect or out of spec
Milestone

Comments

@tgummerer
Copy link
Contributor

What happened?

I was trying to use pulumi env run (which just uses esc under the hood), but forgot to set the environment name in the command line args. This resulted in a rather confusing error.

Example

$ pulumi env run -- pulumi preview                                                                        
Warning: Referring to an environment name ('pulumi') without a project is deprecated.
Please use 'v-thomas-pulumi-corp/default/pulumi' or 'default/pulumi' instead.
error: resolving command: exec: "preview": executable file not found in $PATH

With the -- disambiguation I was expecting it to warn me that there was no environment name specified on the command line.

Output of pulumi about

$ pulumi about                    
CLI          
Version      3.153.2-dev.0
Go Version   go1.22.1
Go Compiler  gc

Plugins
KIND      NAME           VERSION
resource  lambda-plugin  0.0.1
language  python         3.153.2-dev.0

Host     
OS       debian
Version  trixie/sid
Arch     x86_64

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@tgummerer tgummerer added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Mar 11, 2025
@komalali komalali removed the needs-triage Needs attention from the triage team label Mar 12, 2025
@komalali komalali added this to the 0.119 milestone Mar 12, 2025
@cleverguy25 cleverguy25 modified the milestones: 0.119, 0.120 Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

3 participants