Skip to content
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

only install new pulumi version when there's a newer one available #1225

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

tgummerer
Copy link
Contributor

Users can pass 'latest' as the 'pulumi-version' configuration setting. This currently means that they always download the latest version of the CLI, regardless of whether that's already installed or not.

We can do better here and check if the latest version matches the one already installed on the runner, and in that case skip the download.

Fixes #1221

@tgummerer tgummerer requested a review from a team as a code owner July 11, 2024 07:41
Users can pass 'latest' as the 'pulumi-version' configuration setting.
This currently means that they always download the latest version of
the CLI, regardless of whether that's already installed or not.

We can do better here and check if the latest version matches the one
already installed on the runner, and in that case skip the download.
Copy link

@julienp julienp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@tgummerer tgummerer merged commit 50acd71 into main Jul 11, 2024
76 checks passed
@tgummerer tgummerer deleted the tg/latest-version branch July 11, 2024 08:52
@pulumi-bot
Copy link

This PR has been shipped in release v5.3.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using latest for pulumi-version option does not properly match the current and latest versions.
4 participants