ember-learn / ember-learn/ember-jsonapi-docs
Remove use of deprecated corepack
- Vorherrschende Sprache
- JavaScript
- Sterne
- 10
- Forks
- 11
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Rechercherichtung
Beginne mit generate-local.js und führe den dokumentierten Befehl für das Projekt ember-data und die Version 5.4.0 aus, um den corepack-Fehler zu reproduzieren. Verfolge, wie corepack und pnpm aufgerufen werden, und bestätige anschließend, dass der Befehl ohne corepack funktioniert und der docs preview workflow weiterhin abgeschlossen wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, node.js
- Bereich
- tooling
- Issue-Typ
- Refactoring
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 42/100