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:
parent
36af5cb1ae
commit
827b33fbd0
6 changed files with 29 additions and 13 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue