3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-06-19 06:43:41 +00:00

pretty printing and fix workspace package retrieval

This commit is contained in:
Arpad Borsos 2022-07-09 15:51:45 +02:00
parent 36af5cb1ae
commit 827b33fbd0
No known key found for this signature in database
GPG key ID: FC7BCA77824B3298
6 changed files with 29 additions and 13 deletions

View file

@ -9,7 +9,9 @@ export class Workspace {
let packages: Packages = [];
try {
const meta: Meta = JSON.parse(
await getCmdOutput("cargo", ["metadata", "--all-features", "--format-version", "1"]),
await getCmdOutput("cargo", ["metadata", "--all-features", "--format-version", "1"], {
cwd: this.root,
}),
);
for (const pkg of meta.packages) {
if (!pkg.manifest_path.startsWith(this.root)) {