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 publishing SDKs to include required attribute for Pulumi.Automation #393

Merged
merged 2 commits into from
Nov 21, 2024

Conversation

JasonWhall
Copy link
Contributor

@JasonWhall JasonWhall commented Nov 18, 2024

Currently when publishing the Pulumi.Automation SDK there is an expected property PulumiSdkVersion which should be set when building the project

This property is set during buildSdk and testPulumiAutomationSdk but not the publishing targets which provide the resulting nuget package.

This means when a consumer references the Automation Api nuget package they have a version that does not have the required property set causing LocalPulumiCommand.Install to fail.

Refactored the F# code to ensure the version is set during publish as well

Fixes #392

@Frassle
Copy link
Member

Frassle commented Nov 19, 2024

I don't think the test failures here are due to this PR, seeing it elsewhere as well. Looking into it.

@Frassle
Copy link
Member

Frassle commented Nov 21, 2024

Hey @JasonWhall if you rebase this on latest main I think we should be able to get the tests passing and get this merged in.

- Currently when publishing the Pulumi.Automation SDK there is an expected property PulumiSdkVersion which should be set when building the project
- This property is set during buildSdk and testPulumiAutomationSdk but not the publishing targets which provide the resulting nuget package.
- This means when a consumer references the Automation Api nuget package they have a version that does not have the required property set
- Refactored the F# code to ensure the version is set during publish as well
- Add null check for version to fail if not found
@JasonWhall
Copy link
Contributor Author

@Frassle - Thanks! Re-based

@Frassle Frassle added this pull request to the merge queue Nov 21, 2024
Merged via the queue into pulumi:main with commit 8f80f09 Nov 21, 2024
17 checks passed
@julienp julienp mentioned this pull request Nov 21, 2024
@pulumi-bot
Copy link

This PR has been shipped in release v3.69.0.

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.

Unable to use Automation API to install a version of Pulumi
3 participants