yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.25k stars 121 forks source link

[BUG] Version comparison fails when it should actually succeed #240

Open marlonrichert opened 2 years ago

marlonrichert commented 2 years ago
% mint version
Version: 0.17.1

% mint install swiftyfinch/rugby@main
🌱 Cloning rugby main
🌱 Resolving package
error: Dependencies could not be resolved because no versions of 'xcbeautify' match the requirement 0.13.0..<1.0.0 and root depends on 'xcbeautify' 0.13.0..<1.0.0.
🌱 Encountered error during "swift package resolve". Use --verbose to see full output
🌱  Failed to resolve rugby main with SPM

% mint install tuist/xcbeautify
🌱 Finding latest version of xcbeautify
🌱 Cloning xcbeautify 0.13.0
🌱 Resolving package
error: Dependencies could not be resolved because no versions of 'xmlcoder' match the requirement 0.13.1..<1.0.0 and root depends on 'xmlcoder' 0.13.1..<1.0.0.
🌱 Encountered error during "swift package resolve". Use --verbose to see full output
🌱  Failed to resolve xcbeautify 0.13.0 with SPM

The version of xcbeautify shown here is 0.13.0, which should satisfy rugby's dependency requirement of 'xcbeautify' 0.13.0..<1.0.0, but it unexpectedly does not.

macOS Monterey version 12.4 (21F79)