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

hotfix: NPM install lacks install-pulumi-plugin.js #11

Merged
merged 1 commit into from
Jun 17, 2023

Conversation

AaronFriel
Copy link
Contributor

@AaronFriel AaronFriel commented Jun 17, 2023

Fixes #10

This hotfix is intended to substitute for a longer term fix in pulumi/pulumi#13195. This allows us to update our publishing workflows with a fixed NPM package.

This fix is trialed here:

If that works, we'll roll this out to all providers via ci-mgmt and release new versions of packages where the NPM script was omitted. (That list is to be determined.)

Update:

This PR was tested with the GitHub provider v5.12.0-beta.1:

npm install @pulumi/[email protected]

@AaronFriel AaronFriel requested review from mikhailshilkov, a team and guineveresaenger and removed request for a team June 17, 2023 20:50
AaronFriel added a commit to pulumi/pulumi-github that referenced this pull request Jun 17, 2023
Running `npm install` fails due to a missing script in the packaged tarball.
This updates the pulumi-package-publisher to include this script, prior to wider
rollout.

If this succeeds, we'll update pulumi-package-publisher and then roll out to all
providers.

See:
- pulumi/pulumi-package-publisher#11
- pulumi/pulumi-package-publisher#10
- pulumi/pulumi-azure#1301
@AaronFriel AaronFriel requested review from iwahbe and aq17 June 17, 2023 21:06
Copy link

@EvanBoyle EvanBoyle left a comment

Choose a reason for hiding this comment

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

Not deeply familiar with this codebase, but from what I gather:

  • node SDK-driven plugin acquisition is currently broken
  • this is the missing bit of javascript that shells out to pulumi plugin install when npm install is called

overall, looks sane

@AaronFriel AaronFriel force-pushed the friel/hotfix-npm-publish branch from 295ac32 to f143cb7 Compare June 17, 2023 21:55
Fixes #10

This hotfix is intended to substitute for a longer term fix in
pulumi/pulumi#13195. This allows us to update our publishing workflows with a
fixed NPM package.
@AaronFriel AaronFriel force-pushed the friel/hotfix-npm-publish branch from f143cb7 to c1056fa Compare June 17, 2023 22:20
AaronFriel added a commit to pulumi/pulumi-github that referenced this pull request Jun 17, 2023
Running `npm install` fails due to a missing script in the packaged tarball.
This updates the pulumi-package-publisher to include this script, prior to wider
rollout.

If this succeeds, we'll update pulumi-package-publisher and then roll out to all
providers.

See:
- pulumi/pulumi-package-publisher#11
- pulumi/pulumi-package-publisher#10
- pulumi/pulumi-azure#1301
@AaronFriel AaronFriel merged commit dea9ec2 into main Jun 17, 2023
@AaronFriel AaronFriel deleted the friel/hotfix-npm-publish branch June 17, 2023 23:29
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.

NPM Publishing step does not include scripts/install-pulumi-plugin.js
2 participants