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

[BUG] Failing Check Distribution Check #28

Closed
dkwon17 opened this issue Mar 27, 2023 · 0 comments · Fixed by #36
Closed

[BUG] Failing Check Distribution Check #28

dkwon17 opened this issue Mar 27, 2023 · 0 comments · Fixed by #36

Comments

@dkwon17
Copy link
Collaborator

dkwon17 commented Mar 27, 2023

Describe the bug

In the CI check, the Check Distribution check is failing:

Run redhat-actions/common/bundle-verifier@v1
sha256 hashing dist/index.js
Hash: 40POdo6NNrKe0NnqBuGujYfVpkMLqteIN[8](https://github.com/redhat-actions/try-in-web-ide/actions/runs/4536968855/jobs/7994303940#step:4:9)Ywr8jt/E8=
Move dist/index.js to dist/index.js.backup
/usr/local/bin/npm run bundle

> try-in-web-ide@1.0.0 bundle
> npx ncc build src/index.ts --source-map --minify

ncc: Version 0.2[9](https://github.com/redhat-actions/try-in-web-ide/actions/runs/4536968855/jobs/7994303940#step:4:10).2
ncc: Compiling file index.js into CJS
Error: error:03080[10](https://github.com/redhat-actions/try-in-web-ide/actions/runs/4536968855/jobs/7994303940#step:4:11)C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:71:19)
    at Object.createHash (node:crypto:[13](https://github.com/redhat-actions/try-in-web-ide/actions/runs/4536968855/jobs/7994303940#step:4:14)3:10)
    at hashOf (/home/runner/work/try-in-web-ide/try-in-web-ide/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:37:1855992)
    at ncc (/home/runner/work/try-in-web-ide/try-in-web-ide/node_modules/@vercel/ncc/dist/ncc/index.js.cache.js:37:1860404)
    at runCmd (/home/runner/work/try-in-web-ide/try-in-web-ide/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:55081)
    at 819 (/home/runner/work/try-in-web-ide/try-in-web-ide/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:5[16](https://github.com/redhat-actions/try-in-web-ide/actions/runs/4536968855/jobs/7994303940#step:4:17)98)
    at __webpack_require__ (/home/runner/work/try-in-web-ide/try-in-web-ide/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:59006)
    at /home/runner/work/try-in-web-ide/try-in-web-ide/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:592[18](https://github.com/redhat-actions/try-in-web-ide/actions/runs/4536968855/jobs/7994303940#step:4:19)
    at /home/runner/work/try-in-web-ide/try-in-web-ide/node_modules/@vercel/ncc/dist/ncc/cli.js.cache.js:1:59[27](https://github.com/redhat-actions/try-in-web-ide/actions/runs/4536968855/jobs/7994303940#step:4:28)9
    at Object.<anonymous> (/home/runner/work/try-in-web-ide/try-in-web-ide/node_modules/@vercel/ncc/dist/ncc/cli.js:8:[28](https://github.com/redhat-actions/try-in-web-ide/actions/runs/4536968855/jobs/7994303940#step:4:29)) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Error: Error: The process '/usr/local/bin/npm' failed with exit code 1

Upon brief investigation this may be caused because of the upgrade to node 18 on ubuntu 20.04 which happened last month: actions/runner-images#7002 (comment).

Beforehand, Node 16 was used.

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 a pull request may close this issue.

1 participant