[2.0] Exclude build-host native artifacts from the generic binding release
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 15/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust, typescript
- Ambito
- build-system, release
Direzione di ricerca
Start with the files field in packages/binding/package.json, then the packing step in scripts/semantic-release-workspace.mjs, and compare it with the rejection logic in scripts/site-toolchain-snapshot.mjs. The loader order in packages/binding/src/native-loader.ts around lines 407-411 shows why the local artifact wins. Done means a packed @master/css-binding tarball contains no artifacts/mastercss.node or artifacts/mcss, and the matching target package is still selected for each platform.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Parent: #470 (release tracker #467)
Release blocker
The standard release can publish the build host's native binary inside the platform-neutral @master/css-binding package. Its loader prioritizes that local artifact over the correct optional target package, breaking consumers on another OS/architecture.
Evidence
packages/binding/package.jsonincludesartifactsinfiles.cargo xtask build-nativewritespackages/binding/artifacts/mastercss.nodeand the CLI executable. The release runs the root build before packing.scripts/semantic-release-workspace.mjspacks the package without excluding those development artifacts.packages/binding/src/native-loader.ts:407-411selectsresolvePackageArtifact('mastercss.node')before the matching target package.- Calling the actual release plugin's
preparein a disposable workspace produced a tarball containing bothpackage/artifacts/mastercss.nodeandpackage/artifacts/mcss. - Simulating the Linux release binary in that generic package on macOS reproduced
NATIVE_LOAD_FAILED/ invalid Mach-O even with the matching Darwin package available to resolution. No working-tree binary was changed.
The snapshot staging path already rejects this condition in scripts/site-toolchain-snapshot.mjs, but the standard release path lacks the same protection. A successful native target smoke test does not exercise the generic wrapper tarball.
Acceptance
- Generic binding tarballs contain no build-host native artifacts; native binaries ship only in matching target packages.
- Add a packed-wrapper check to the actual release preparation/validation path, not only snapshot staging.
- Test the assembled public dependency closure on every supported target, verifying selection of the matching addon and CLI.
- Preserve intentional local-checkout artifact loading without exporting it into published archives.
- Reconcile snapshot and normal release packing so one cannot succeed with an artifact shape the other correctly rejects.
- Lingua principale
- TypeScript
- Stelle
- 2k
- Fork
- 44
- Merge medio
- 1g 14h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di master-co/css
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
-
Difficoltà 4/5 Più di una settimana Idoneità per principianti 12/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
Tutte le issue di master-co/css
Issue simili
-
[fullsend] E2E: scorecard — filecheck GitLab entity metrics unavailable due to initialDelay timingApertae2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
redhat-developer/rhdh-plugin-export-overlays#4698 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
devswha/herdr-web-ui#2884 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
b:minor bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
software-mansion/argent#1771 ·
I maintainer di solito rispondono entro 1 giorno
-
Resources: New palettes of XiamenForse già presa @rmt-svc l’ha presa oggi. Apertaresources
Difficoltà 1/5 1-3 ore Idoneità per principianti 74/100
railmapgen/rmg-palette#2491 ·
I maintainer di solito rispondono entro 4 giorni