Skip to content

Commit 7e1e2d0

Browse files
authored
Set empty CARGO_ENCODED_RUSTFLAGS in workspace metadata retrieval (#249)
1 parent 98c8021 commit 7e1e2d0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

dist/restore/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144357,6 +144357,7 @@ class Workspace {
144357144357
lib_core.debug(`collecting metadata for "${this.root}"`);
144358144358
const meta = JSON.parse(await getCmdOutput("cargo", ["metadata", "--all-features", "--format-version", "1", ...extraArgs], {
144359144359
cwd: this.root,
144360+
env: { "CARGO_ENCODED_RUSTFLAGS": "" },
144360144361
}));
144361144362
lib_core.debug(`workspace "${this.root}" has ${meta.packages.length} packages`);
144362144363
for (const pkg of meta.packages.filter(filter)) {

dist/save/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144357,6 +144357,7 @@ class Workspace {
144357144357
core.debug(`collecting metadata for "${this.root}"`);
144358144358
const meta = JSON.parse(await getCmdOutput("cargo", ["metadata", "--all-features", "--format-version", "1", ...extraArgs], {
144359144359
cwd: this.root,
144360+
env: { "CARGO_ENCODED_RUSTFLAGS": "" },
144360144361
}));
144361144362
core.debug(`workspace "${this.root}" has ${meta.packages.length} packages`);
144362144363
for (const pkg of meta.packages.filter(filter)) {

src/workspace.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export class Workspace {
1515
const meta: Meta = JSON.parse(
1616
await getCmdOutput("cargo", ["metadata", "--all-features", "--format-version", "1", ...extraArgs], {
1717
cwd: this.root,
18+
env: { "CARGO_ENCODED_RUSTFLAGS": "" },
1819
}),
1920
);
2021
core.debug(`workspace "${this.root}" has ${meta.packages.length} packages`);

0 commit comments

Comments
 (0)