Skip to content

Commit 5f06a33

Browse files
committed
oops, messed this up (and ran tests this time)
1 parent 08a978b commit 5f06a33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/volta-core/src/tool/yarn/resolve.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ fn resolve_custom_tag(tag: String) -> Fallible<Version> {
9090
// first try yarn2+, which uses "@yarnpkg/cli-dist" instead of "yarn"
9191
let (url, mut index) = fetch_yarn_index("@yarnpkg/cli-dist")?;
9292

93-
let matches_yarn_3 = VersionReq::parse(">=3").unwrap();
93+
let matches_yarn_2 = VersionReq::parse("2.*").unwrap();
9494
if let Some(version) = index.tags.remove(&tag) {
9595
debug!("Found yarn@{} matching tag '{}' from {}", version, tag, url);
96-
if matches_yarn_3.matches(&version) {
96+
if matches_yarn_2.matches(&version) {
9797
return Err(ErrorKind::Yarn2NotSupported.into());
9898
}
9999
return Ok(version);

0 commit comments

Comments
 (0)