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

fix(pulumi): include build deps in plugin commands #6260

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

thsig
Copy link
Collaborator

@thsig thsig commented Jul 5, 2024

What this PR does / why we need it:

In 0.12, we included build dependencies for Pulumi modules (e.g. when previewing). A build dependency (e.g. on an exec Module or Build) is a common way to ensure that the relevant language SDK is installed for the module/action before running Pulumi.

We didn't bring this logic along when we adapted the Pulumi plugin commands for 0.13—this is fixed here.

Also added a lightweight test project to test this logic (which should also serve us well when making further fixes to this plugin).

Which issue(s) this PR fixes:

Fixes #6256

Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

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

Looks good! 👍 Thank you!

Copy link
Collaborator

@vvagaytsev vvagaytsev left a comment

Choose a reason for hiding this comment

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

Ah, the test failures were caused by the PR, not by CI flakiness.

In 0.12, we included build dependencies for Pulumi modules (e.g. when
previewing). A build dependency (e.g. on an `exec` Module or Build)
is a common way to ensure that the relevant language SDK is installed
for the module/action before running Pulumi.

We didn't bring this logic along when we adapted the Pulumi plugin
commands for 0.13—this is fixed here.

Also added a lightweight test project to test this logic (which should
also serve us well when making further fixes to this plugin).
@vvagaytsev vvagaytsev added this pull request to the merge queue Jul 8, 2024
Merged via the queue into main with commit 1e5c1df Jul 8, 2024
40 checks passed
@vvagaytsev vvagaytsev deleted the pulumi-cmd-fixes branch July 8, 2024 12:43
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.

0.13: [Bug]: npm ci missing from garden plugins pulumi preview command
2 participants