ember-learn / ember-learn/ember-jsonapi-docs
Remove use of deprecated corepack
- Lingua principale
- JavaScript
- Stelle
- 10
- Fork
- 11
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
corepack was recently deprecated, as no one remaining on the nodejs core team wishes to continue maintaining it (the original author of it and only contributor to it has left the project).
it's also buggy, especially when it comes to `pnpm install`. I discovered we were using it for this repo when working to automate docs previews for `ember-data`.
```
$ node generate-local.js --project ember-data --version "5.4.0"
Running 'corepack' in ../data
/Users/cthoburn/.volta/tools/image/node/22.3.0/lib/node_modules/corepack/dist/lib/corepack.cjs:22460
throw new Error(`Cannot find matching keyid: ${JSON.stringify({ signatures, keys })}`);
```
googling tells me I can work around this particular bug by telling corepack to ignore integrity checks entirely if pnpm is in use, but since we also shouldn't be using corepack anymore I figured I'd open an issue.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con generate-local.js ed esegui il comando documentato per il progetto ember-data e la versione 5.4.0 per riprodurre il fallimento di corepack. Traccia come vengono invocati corepack e pnpm, quindi conferma che il comando funziona senza corepack e che il docs preview workflow continua a completarsi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js
- Ambito
- tooling
- Tipo di issue
- Refactoring
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100