Skip to content

Commit 3a79306

Browse files
authored
Merge pull request #156 from nerwalt/fix-objcopy-manifest-path
Pass tool manifest path on to cargo metadata command
2 parents 3d69bc1 + c905f8a commit 3a79306

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Fixed metadata error when using `--manifest-path` outside of a project folder.
13+
14+
### Changed
15+
1016
- The `llvm-tools-preview` component was renamed to `llvm-tools`
1117

1218
### Changed

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ pub fn run(tool: Tool, matches: ArgMatches) -> Result<i32> {
291291
if matches.get_flag("all-features") {
292292
metadata_command.features(CargoOpt::AllFeatures);
293293
}
294+
if let Some(path) = matches.get_one::<String>("manifest-path") {
295+
metadata_command.manifest_path(path);
296+
}
294297
let metadata = metadata_command.exec()?;
295298
if metadata.workspace_members.is_empty() {
296299
bail!("Unable to find workspace members");

0 commit comments

Comments
 (0)