@roomi-fields/grillhouse 0.50.2 → 0.50.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.50.3] - 2026-11-25
|
|
10
|
+
|
|
11
|
+
- **An integration test that reads `env!("CARGO_BIN_EXE_<bin>")` compiles again** (grillhouse-3uv.251): the short wrapper of sccache of 0.50.2 ran under `sh`, which drops a variable whose name holds a hyphen, so a binary named like `osd-reference` failed to compile (seen by OSD). The wrapper runs under bash, in a new file of the cache (`sccache-court-bash`). **Action for projects**: none.
|
|
12
|
+
|
|
9
13
|
## [0.50.2] - 2026-11-25
|
|
10
14
|
|
|
11
15
|
- **A generated file the lot feeds is played again before the tests that read it** (grillhouse-3uv.245): before the proof of the red, the checks and the final pass, the circuit plays in the copy the command of each entry of `grillhouse.engendres` whose `lit` covers a file the lot changes, its files entering the lot as those of 4.2, so a ticket that adds cases no longer turns red on the test that reads their sums. **Action for projects**: none.
|
package/package.json
CHANGED
|
@@ -46,6 +46,10 @@
|
|
|
46
46
|
// (`lanceurCourt`): a client that must start the server itself, which cargo's long TMPDIR
|
|
47
47
|
// would break, binds its socket there (grillhouse-3uv.239, OSD-sf1.25.1). The two ends of the
|
|
48
48
|
// start are so short whoever begins it, rather than one more rescue of the first.
|
|
49
|
+
// - That wrapper changes nothing else of what rustc sees: it is run by bash, which hands on every
|
|
50
|
+
// variable of its environment; a POSIX shell such as dash (`/bin/sh` of Debian and Ubuntu)
|
|
51
|
+
// drops those whose name is no shell identifier, `CARGO_BIN_EXE_<bin>` of a binary whose name
|
|
52
|
+
// holds a hyphen among them, and `env!` then fails to compile (grillhouse-3uv.251).
|
|
49
53
|
// - A wrapper the project sets already is its own: the run keeps it, without sccache. It is read
|
|
50
54
|
// as cargo reads it: the environment (`RUSTC_WRAPPER`, `CARGO_BUILD_RUSTC_WRAPPER`), then
|
|
51
55
|
// `build.rustc-wrapper` of each `.cargo/config.toml` (or `.cargo/config`) from the project up to
|
|
@@ -129,16 +133,19 @@ function lanceurDuProjet(racine, env) {
|
|
|
129
133
|
return null;
|
|
130
134
|
}
|
|
131
135
|
|
|
132
|
-
|
|
136
|
+
// `-p`: bash reads no startup file of the caller (`BASH_ENV`) and imports none of its functions.
|
|
137
|
+
const LANCEUR = '#!/bin/bash -p\nTMPDIR=/tmp exec sccache "$@"\n';
|
|
133
138
|
|
|
134
139
|
// The wrapper of rustc of the run: a script of the cache directory <cache> that runs sccache under
|
|
135
140
|
// the machine's `COURT` temporary directory. Cargo hands its wrapper its own TMPDIR, which a
|
|
136
141
|
// client that has to start the server (a server stopped by its idle time, killed, or born in
|
|
137
142
|
// another envelope) binds a socket under, refused past 108 bytes of a path (« path must be
|
|
138
143
|
// shorter than SUN_LEN », OSD-sf1.25.1); the compilations keep cargo's TMPDIR. Written once, then
|
|
139
|
-
// read: a file cannot carry an executable bit in a package, so the script is made here.
|
|
144
|
+
// read: a file cannot carry an executable bit in a package, so the script is made here. Its name
|
|
145
|
+
// is its own, apart from `sccache-court`: the cache is common to every copy of the machine, and a
|
|
146
|
+
// copy on the 0.50.2 writes there its script for `sh`.
|
|
140
147
|
function lanceurCourt(cache) {
|
|
141
|
-
const fichier = path.join(cache, 'sccache-court');
|
|
148
|
+
const fichier = path.join(cache, 'sccache-court-bash');
|
|
142
149
|
try {
|
|
143
150
|
if (readFileSync(fichier, 'utf8') === LANCEUR && (statSync(fichier).mode & 0o111) !== 0) {
|
|
144
151
|
return fichier;
|