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

Embed sdk version #67

Merged
merged 6 commits into from
May 28, 2024
Merged

Embed sdk version #67

merged 6 commits into from
May 28, 2024

Conversation

danielrbradley
Copy link
Member

@danielrbradley danielrbradley commented May 28, 2024

Enable respectSchemaVersion:

  • Update schema to add respectSchemaVersion.
  • Use pulumi package gen-sdk so we can set the version (install pulumi CLI in local folder).
  • Update python build to match other providers.

Tidy old generation code:

  • Remove obsolete go generate step
  • Remove codegen program

- Update schema to add respectSchemaVersion.
- Use `pulumi package gen-sdk` so we can set the version (install pulumi CLI in local folder).
- Update python build to match other providers.
@danielrbradley danielrbradley self-assigned this May 28, 2024
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@danielrbradley danielrbradley requested review from blampe and a team May 28, 2024 16:16
Copy link
Member

@iwahbe iwahbe left a comment

Choose a reason for hiding this comment

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

LGTM


# Pulumi for codegen

.pulumi/bin/pulumi: PULUMI_VERSION := $(shell cat .pulumi.version)
Copy link
Member

Choose a reason for hiding this comment

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

I'm always scared that this will never get bumped, but its no worse then we have in other places.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup, I think we just need this as part of the scheduled upgrade job. Have added an issue to track this: pulumi/ci-mgmt#940

Me and @blampe have been debating this area also in pulumi/pulumi-docker-build#68 and my efforts so far have been to standardise on this very simple style of installing an isolated copy of pulumi, and I hope we can also move all bridged providers to this too once the docs issues are resolved and we no longer have to modify the schema for each language.

@danielrbradley danielrbradley merged commit dbe98a6 into master May 28, 2024
16 checks passed
@danielrbradley danielrbradley deleted the embed-sdk-version branch May 28, 2024 19:40
@blampe blampe mentioned this pull request May 29, 2024
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.

2 participants