Skip to content

Commit

Permalink
Precede paths with $ROOT$
Browse files Browse the repository at this point in the history
  • Loading branch information
alibektas committed Nov 23, 2023
1 parent 736994f commit ba1b080
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions crates/project-model/test_data/deduplication_crate_graph_A.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"features": [],
"target": null,
"registry": null,
"path": "/example_project/p2"
"path": "$ROOT$example_project/p2"
}
],
"targets": [
Expand All @@ -32,15 +32,15 @@
"lib"
],
"name": "p1",
"src_path": "/example_project/p1/src/lib.rs",
"src_path": "$ROOT$example_project/p1/src/lib.rs",
"edition": "2021",
"doc": true,
"doctest": true,
"test": true
}
],
"features": {},
"manifest_path": "/example_project/p1/Cargo.toml",
"manifest_path": "$ROOT$example_project/p1/Cargo.toml",
"metadata": null,
"publish": null,
"authors": [],
Expand Down Expand Up @@ -73,15 +73,15 @@
"lib"
],
"name": "p2",
"src_path": "/example_project/p2/src/lib.rs",
"src_path": "$ROOT$example_project/p2/src/lib.rs",
"edition": "2021",
"doc": true,
"doctest": true,
"test": true
}
],
"features": {},
"manifest_path": "/example_project/p2/Cargo.toml",
"manifest_path": "$ROOT$example_project/p2/Cargo.toml",
"metadata": null,
"publish": null,
"authors": [],
Expand Down Expand Up @@ -133,8 +133,8 @@
],
"root": "p1 0.1.0 (path+file:///example_project/p1)"
},
"target_directory": "/example_project/p1/target",
"target_directory": "$ROOT$example_project/p1/target",
"version": 1,
"workspace_root": "/example_project/p1",
"workspace_root": "$ROOT$example_project/p1",
"metadata": null
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
"lib"
],
"name": "p2",
"src_path": "/example_project/p2/src/lib.rs",
"src_path": "$ROOT$example_project/p2/src/lib.rs",
"edition": "2021",
"doc": true,
"doctest": true,
"test": true
}
],
"features": {},
"manifest_path": "/example_project/p2/Cargo.toml",
"manifest_path": "$ROOT$example_project/p2/Cargo.toml",
"metadata": null,
"publish": null,
"authors": [],
Expand Down Expand Up @@ -59,8 +59,8 @@
],
"root": "p2 0.1.0 (path+file:///example_project/p2)"
},
"target_directory": "/example_project/p2/target",
"target_directory": "$ROOT$example_project/p2/target",
"version": 1,
"workspace_root": "/example_project/p2",
"workspace_root": "$ROOT$example_project/p2",
"metadata": null
}

0 comments on commit ba1b080

Please sign in to comment.