File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public bool InRange(string range)
103103 public bool InRange ( Range versionRange )
104104 {
105105 var satisfied = versionRange . IsSatisfied ( this ) ;
106- if ( this . ArtifactBuildState != ArtifactBuildState . Released || satisfied ) return satisfied ;
106+ if ( satisfied ) return true ;
107107
108108 //Semver can only match snapshot version with ranges on the same major and minor
109109 //anything else fails but we want to know e.g 2.4.5-SNAPSHOT satisfied by <5.0.0;
Original file line number Diff line number Diff line change @@ -16,8 +16,28 @@ public static class Program
1616 {
1717 public static int Main ( )
1818 {
19+
20+ var range = new SemVer . Range ( ">=7.2.0-alpha2" ) ;
21+ var v = ElasticVersion . From ( "7.4.0-SNAPSHOT" ) ;
22+ var vLatest = ElasticVersion . From ( "latest-7" ) ;
23+ var v3 = ElasticVersion . From ( "7.2.0" ) ;
24+ var v5 = ElasticVersion . From ( "7.1.0" ) ;
25+ var v4 = ElasticVersion . From ( "7.2.0-alpha1" ) ;
26+
27+
28+ Console . WriteLine ( v . InRange ( range ) ) ;
29+ Console . WriteLine ( vLatest . InRange ( range ) ) ;
30+ Console . WriteLine ( v3 . InRange ( range ) ) ;
31+ Console . WriteLine ( v4 . InRange ( range ) ) ;
32+ Console . WriteLine ( v5 . InRange ( range ) ) ;
33+
34+
35+
36+
37+
38+
1939 //ResolveVersions();
20- ManualConfigRun ( ) ;
40+ // ManualConfigRun();
2141 //ValidateCombinations.Run();
2242 return 0 ;
2343 }
You can’t perform that action at this time.
0 commit comments