We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6030f57 commit 0d4706aCopy full SHA for 0d4706a
src/cargo/util/toml/mod.rs
@@ -1611,6 +1611,18 @@ impl DetailedTomlDependency {
1611
}
1612
1613
1614
+ if let Some(git) = self.git.clone() {
1615
+ if let Ok(url) = git.into_url() {
1616
+ if url.fragment().is_some() {
1617
+ let msg = format!(
1618
+ "hash in git url is ignored for dependency ({}). \
1619
+ if you were trying to specify a specific git revision, use rev = \"revision\".",
1620
+ name_in_toml);
1621
+ cx.warnings.push(msg)
1622
+ }
1623
1624
1625
+
1626
let new_source_id = match (
1627
self.git.as_ref(),
1628
self.path.as_ref(),
0 commit comments