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

Return the underlying error if we can't locate the pulumi SDK #16160

Merged
merged 1 commit into from
May 10, 2024

Conversation

julienp
Copy link
Contributor

@julienp julienp commented May 10, 2024

Description

When locating the pulumi SDK fails with an error other than
MODULE_NOT_FOUND, return the underlying error instead of our default
error message asking to run pulumi install. This is helpful when
there's a typo in package.json and it can't be parsed.

Fixes #4973

Checklist

  • I have run make tidy to update any new dependencies
  • I have run make lint to verify my code passes the lint check
    • I have formatted my code using gofumpt
  • I have added tests that prove my fix is effective or that my feature works
  • I have run make changelog and committed the changelog/pending/<file> documenting my change
  • Yes, there are changes in this PR that warrants bumping the Pulumi Cloud API version

When locating the pulumi SDK fails with an error other than
MODULE_NOT_FOUND, return the underlying error instead of our default
error message asking to run `pulumi install`. This is helpful when
there's a typo in package.json and it can't be parsed.
@julienp julienp requested a review from a team as a code owner May 10, 2024 12:30
@pulumi-bot
Copy link
Contributor

Changelog

[uncommitted] (2024-05-10)

Bug Fixes

  • [sdk/nodejs] Return the underlying error if we can't locate the pulumi SDK
    #16160

@julienp julienp added this pull request to the merge queue May 10, 2024
Merged via the queue into master with commit a51219f May 10, 2024
49 checks passed
@julienp julienp deleted the julienp/ambiguous-error-when-package.json-error branch May 10, 2024 14:31
@justinvp justinvp mentioned this pull request May 10, 2024
github-merge-queue bot pushed a commit that referenced this pull request May 13, 2024
Tentative changelog:

### Bug Fixes

- [engine] Fix dataraces between snapshot and deployment systems.
  [#16148](#16148)

- [cli/display] Fix mangled diffs of strings containing url-encoded
chars
  [#16147](#16147)

- [sdk/nodejs] Don't load punycode module in function serialization code
  [#16149](#16149)

- [sdk/nodejs] Return error in RPC response instead of exiting in the
language runtime
  [#16162](#16162)

- [sdk/nodejs] Return the underlying error if we can't locate the pulumi
SDK
  [#16160](#16160)

- [sdk/python] Provide more descriptive exception
  [#16098](#16098)

- [sdk/python] Fix typings for `from_input` and `all` to not return
`Never` types.
  [#16139](#16139)

- [sdk/python] Fix a race condition in output handling
  [#16155](#16155)


### Miscellaneous

- [pkg] Upgrade pulumi-java to v0.11.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.

Ambiguous error when package.json has errors
3 participants