kenotron / glob-hasher

0 stars 1 forks source link

Error: Cannot find module 'glob-hasher-linux-x64-musl' #1

Open tmrudick opened 10 months ago

tmrudick commented 10 months ago

Describe the bug

When, running Lage on GCP Cloud Build workers, I get the following error message:

Error: Cannot find module 'glob-hasher-linux-x64-musl'
Require stack:
- /workspace/node_modules/glob-hasher/index.js
- /workspace/node_modules/lage/dist/lage.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
    at Module._load (node:internal/modules/cjs/loader:975:27)
    at Module.require (node:internal/modules/cjs/loader:1225:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/workspace/node_modules/glob-hasher/index.js:171:31)
    at Module._compile (node:internal/modules/cjs/loader:1356:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)
    at Module.load (node:internal/modules/cjs/loader:1197:32)
    at Module._load (node:internal/modules/cjs/loader:1013:12)
    at Module.require (node:internal/modules/cjs/loader:1225:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/workspace/node_modules/glob-hasher/index.js',
    '/workspace/node_modules/lage/dist/lage.js'
  ]
}

This appears to be due to the linux-x64-musl variant of the glob-hasher package not being published to npm.

To Reproduce Steps to reproduce the behavior:

  1. Create a project using Lage and/or use the glob-hasher in a new project
  2. Attempt to run on a system with a linux-x64-musl architecture

Expected behavior CPU specific glob-hasher package is downloaded for linux-x64.

Actual behavior Fails to require glob-hasher module.

Environment/Troubleshooting

  System:
    OS: Linux 5.10 Alpine Linux
    CPU: (8) x64 Intel(R) Xeon(R) CPU @ 2.20GHz
    Memory: 6.18 GB / 6.98 GB
    Container: Yes
    Shell: 1.36.1 - /bin/ash
  Binaries:
    Node: 18.19.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.6.7 - /usr/local/bin/npm
  Utilities:
    Git: 2.43.0 - /usr/bin/git
  Languages:
    Bash: 5.2.21 - /bin/bash
  Monorepos:
    Yarn Workspaces: 1.22.19
tmrudick commented 10 months ago

To unblock myself, I built and published the missing glob-hasher-linux-x64-musl package. Happy to hand over ownership in npm.

kenotron commented 6 months ago

please do add kenotron_msft as owner on those glob-hasher ones, this is blocking me from fixing publishes correctly. @tmrudick

tmrudick commented 6 months ago

Invited you as a maintainer. Can try to transfer ownership once you accept.

kenotron commented 6 months ago

Okay done!

tmrudick commented 6 months ago

@kenotron removed myself as a maintainer. You should now be the sole maintainer/owner.