Skip to content

Commit

Permalink
Add workaround for legacy package managers
Browse files Browse the repository at this point in the history
  • Loading branch information
alnlarsen committed Nov 30, 2023
1 parent a09f3c1 commit 4f1c375
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Package/Repositories/HttpPackageRepository.cs
Expand Up @@ -59,8 +59,11 @@ public SemanticVersion Version
{
if (_version == null)
CheckRepoApiVersion();

return _version;
// The version of the repo is not important.
// The primary purpose of the check is to see if the repo is available.
// Return version 3.10 to mitigate old package managers that use a faulty
// compatibility check that relies on this property.
return new SemanticVersion(3, 10, 0, null, null);
}
}

Expand Down

0 comments on commit 4f1c375

Please sign in to comment.