pulumi / esc

Pulumi ESC (Environments, Secrets, and Configuration) for cloud applications and infrastructure.
https://www.pulumi.com/product/esc/
Apache License 2.0
195 stars 4 forks source link

cli: move to new versioning API routes #317

Closed pgavlin closed 1 month ago

pgavlin commented 1 month ago

All versioning-related APIs now live under /versions, and the shape of the revision-related APIs has changed somewhat.

This has the nice side-effect of removing an API call when using tagged versions.

pgavlin commented 1 month ago

Unrelated to the PR, but just curious: any reason why these paths use %v and not %s? Afaik, %v is most generic, wouldn't it be safer to use %s?

%s would let the linters catch cases where we're passing non-strings, yes. But in these cases we also don't really care--if we were writing in TS we'd probably just use string interpolations for these cases, which is morally what we're doing with %v.