refined-alligator-39489
12/22/2024, 6:18 AM$ pulumi env run ai-dev pnpm dev
Warning: Referring to an environment name ('ai-dev') without a project is deprecated.
Please use 'cortexclick/default/ai-dev' or 'default/ai-dev' instead.
I can understand why y'all did this (presumably to disambiguate and reduce errors in some cases), but I not a fan. Why do I need to be forced to type out default
if I am not utilizing project structure?worried-flag-17395
12/22/2024, 6:28 AMrefined-alligator-39489
12/22/2024, 6:50 AMfoo
that automatically resolves to $DEFAULT_ORG/default/foo
Feels like an unnecessary inconvenience for the simple case and searching for the rationale behind the decision.red-match-15116
12/23/2024, 8:21 PMdefault
🙂refined-alligator-39489
12/23/2024, 9:41 PMpulumi env run [environment]
is just an alias to default-org/default/environment
which is unambiguous.
This code even suggests that it is unambiguous and that this format is marked as "legacy": https://github.com/pulumi/esc/blob/e9e5988d30e143afc372b4f5708de0c2f3fd0aa2/cmd/esc/cli/env.go#L113-L125
Just trying to get a clear picture of why this had to be marked as legacy and removed. Tried digging through some PRs, but I couldn't really find anything in issues or PR descriptions that outlined the rationale for the change. Closest thing I found was this PR comment: https://github.com/pulumi/esc/pull/369#discussion_r1710348227
My closest guess is that you all don't want people accidentally creating envs in the default project, or unexpectedly opening a env that exists in both default and another project. I can understand that, but I am not at the scale where I need or care about projects. I just don't want to unnecessarily type stuff every time - especially if there isn't a problem with ambiguity and the goal is to just protect me from myself.
Is there a happy medium here? Maybe support could be added for $PULUMI_ESC_DEFAULT_PROJECT so that the short commands can be kept?refined-alligator-39489
12/23/2024, 9:52 PMred-match-15116
12/23/2024, 10:03 PMrefined-alligator-39489
12/23/2024, 10:13 PMripe-translator-94678
12/23/2024, 10:37 PM{prefix}/name
where we aren't sure did you mean {org}/default/name
or $DEFAULT_ORG/{project}/name
.
Another big part of deprecating this was to align with how stacks function where they have to belong to a project. We can follow up on the issue as I'm sure there is a happy medium. 😄refined-alligator-39489
12/23/2024, 10:43 PMripe-translator-94678
12/23/2024, 10:44 PMrefined-alligator-39489
12/23/2024, 10:45 PMprefix/name
and seems kinda impossible to support that format in a way that works predictably well.
And yeah, I'm just concerned about the case where you only specify name
I'm just trying to avoid typing extra things through my own laziness 😂 though at the end of the day, it isn't like this will stop me from using ESC. Love the product!ripe-translator-94678
12/23/2024, 10:47 PM