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 08a978b commit 5f06a33Copy full SHA for 5f06a33
crates/volta-core/src/tool/yarn/resolve.rs
@@ -90,10 +90,10 @@ fn resolve_custom_tag(tag: String) -> Fallible<Version> {
90
// first try yarn2+, which uses "@yarnpkg/cli-dist" instead of "yarn"
91
let (url, mut index) = fetch_yarn_index("@yarnpkg/cli-dist")?;
92
93
- let matches_yarn_3 = VersionReq::parse(">=3").unwrap();
+ let matches_yarn_2 = VersionReq::parse("2.*").unwrap();
94
if let Some(version) = index.tags.remove(&tag) {
95
debug!("Found yarn@{} matching tag '{}' from {}", version, tag, url);
96
- if matches_yarn_3.matches(&version) {
+ if matches_yarn_2.matches(&version) {
97
return Err(ErrorKind::Yarn2NotSupported.into());
98
}
99
return Ok(version);
0 commit comments