3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-07-20 05:12:05 +00:00

Set empty CARGO_ENCODED_RUSTFLAGS in workspace metadata retrieval.

This commit is contained in:
Arsenii Lyashenko 2025-06-27 18:19:37 +04:00
parent 98c8021b55
commit 8ce93b1664

View file

@ -15,6 +15,7 @@ export class Workspace {
const meta: Meta = JSON.parse( const meta: Meta = JSON.parse(
await getCmdOutput("cargo", ["metadata", "--all-features", "--format-version", "1", ...extraArgs], { await getCmdOutput("cargo", ["metadata", "--all-features", "--format-version", "1", ...extraArgs], {
cwd: this.root, cwd: this.root,
env: {"CARGO_ENCODED_RUSTFLAGS": ""},
}), }),
); );
core.debug(`workspace "${this.root}" has ${meta.packages.length} packages`); core.debug(`workspace "${this.root}" has ${meta.packages.length} packages`);