Skip to content

Commit a3c1ef8

Browse files
authored
Fix issue with executing cargo-metadata (#68)
* Stop supplying manifest-path * Prepare release 0.5.1
1 parent 3953c5b commit a3c1ef8

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.5.1] - 2019-12-19
10+
### Fixed
11+
- Fixed issue where both `--manifest-path` and working directory were set when executing `cargo-metadata`, causing it to fail if a executed in a subdirectory.
12+
913
## [0.5.0] - 2019-12-18
1014
### Added
1115
- Added the `advisories` check and configuration section for checking crates against an advisory database to detect security vulnerabilities, unmaintained crates, and crates with security notices

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "cargo-deny"
33
description = "Cargo plugin to help you manage large dependency graphs"
44
repository = "https://github.com/EmbarkStudios/cargo-deny"
5-
version = "0.5.0"
5+
version = "0.5.1"
66
authors = ["Embark <[email protected]>", "Jake Shadle <[email protected]>"]
77
edition = "2018"
88
license = "MIT OR Apache-2.0"

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ impl AsRef<[KrateDetails]> for Krates {
400400
}
401401

402402
pub fn get_all_crates<P: AsRef<Path>>(root: P) -> Result<Krates, Error> {
403-
let cargo_toml = root.as_ref().join("Cargo.toml");
403+
//let cargo_toml = root.as_ref().join("Cargo.toml");
404404
let metadata = cargo_metadata::MetadataCommand::new()
405-
.manifest_path(cargo_toml)
405+
//.manifest_path(cargo_toml)
406406
// We run cargo_metadata from the root path provided by the user
407407
// so that any potential .cargo/config is picked up correctly,
408408
// as eg. adding registries in the config that are used by one

0 commit comments

Comments
 (0)