Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub enum BuildType {
#[derive(Clone, Copy, Display)]
#[display(style = "camelCase")]
pub enum RustVendor {
FetchCargoTarball,
FetchCargoVendor,
ImportCargoLock,
}

Expand Down Expand Up @@ -51,7 +51,7 @@ impl Display for BuildType {
f,
"buildRustPackage - {}",
match vendor {
RustVendor::FetchCargoTarball => "cargoHash",
RustVendor::FetchCargoVendor => "cargoHash",
RustVendor::ImportCargoLock => "cargoLock",
}
)?;
Expand Down
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,9 +357,9 @@ async fn run() -> Result<()> {
.map_while(Result::ok)
.any(|line| line.starts_with(r#"source = "git+"#))
}) {
&[RustVendor::ImportCargoLock, RustVendor::FetchCargoTarball]
&[RustVendor::ImportCargoLock, RustVendor::FetchCargoVendor]
} else {
&[RustVendor::FetchCargoTarball, RustVendor::ImportCargoLock]
&[RustVendor::FetchCargoVendor, RustVendor::ImportCargoLock]
}
} else {
&[] as &[_]
Expand Down Expand Up @@ -579,7 +579,7 @@ async fn run() -> Result<()> {
None,
}
let rust = match rust {
Some(RustVendor::FetchCargoTarball) => RustVendorData::Hash(
Some(RustVendor::FetchCargoVendor) => RustVendorData::Hash(
cargo_deps_hash(
&mut inputs,
&pname,
Expand Down Expand Up @@ -678,7 +678,7 @@ async fn run() -> Result<()> {
}

BuildType::BuildRustPackage {
vendor: RustVendor::FetchCargoTarball,
vendor: RustVendor::FetchCargoVendor,
} => {
let hash = cargo_deps_hash(
&mut inputs,
Expand Down Expand Up @@ -750,7 +750,7 @@ async fn run() -> Result<()> {
}

BuildType::MkDerivation {
rust: Some(RustVendor::FetchCargoTarball),
rust: Some(RustVendor::FetchCargoVendor),
} => {
let hash = cargo_deps_hash(
&mut inputs,
Expand Down