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

Revert convert to esm #544

Merged
merged 4 commits into from
Apr 15, 2024
Merged

Revert convert to esm #544

merged 4 commits into from
Apr 15, 2024

Conversation

fairclothjm
Copy link
Contributor

@fairclothjm fairclothjm commented Apr 15, 2024

Reverts #533

Looks like that change has broken the action as can be seen in this comment.

Unfortunately, our E2E tests and local tests don't reveal this issue. It has something to do with the fact that they use the local path:

uses: ./

But I am not sure exactly why that succeeds and the following fails:

uses: hashicorp/vault-action@main # or any remote ref

However, there is good news. (1) #533 has not been released yet and (2) It looks like there is experimental support for require()-ing synchronous ES modules in Node.js from nodejs/node#51977 which should be available in the next major node Version (v22?). That should allow us to import got v14 without having to convert our project to ESM.

@fairclothjm fairclothjm requested a review from a team April 15, 2024 20:03
Copy link
Contributor

@swenson swenson left a comment

Choose a reason for hiding this comment

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

LGTM

@fairclothjm fairclothjm merged commit 66531b2 into main Apr 15, 2024
6 checks passed
@fairclothjm fairclothjm deleted the revert-convert-to-esm branch April 15, 2024 21:39
@fairclothjm
Copy link
Contributor Author

Thanks!

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