-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from ckipp01/rangeFix
fix: ensure ranges don't end up in manifest
- Loading branch information
Showing
5 changed files
with
64 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.bsp/ | ||
.metals/ | ||
out/ | ||
manifest.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
"dependencies": [ | ||
"com.lihaoyi:fansi_3:0.3.1", | ||
"com.lihaoyi:sourcecode_3:0.2.8", | ||
"org.scala-lang:scala3-library_3:3.0.2" | ||
"org.scala-lang:scala3-library_3:3.1.3" | ||
], | ||
"relationship": "direct", | ||
"package_url": "pkg:maven/com.lihaoyi/[email protected]" | ||
|
@@ -23,7 +23,7 @@ | |
}, | ||
"dependencies": [ | ||
"com.lihaoyi:sourcecode_3:0.2.8", | ||
"org.scala-lang:scala3-library_3:3.0.2" | ||
"org.scala-lang:scala3-library_3:3.1.3" | ||
], | ||
"relationship": "indirect", | ||
"package_url": "pkg:maven/com.lihaoyi/[email protected]" | ||
|
@@ -33,7 +33,7 @@ | |
|
||
}, | ||
"dependencies": [ | ||
"org.scala-lang:scala3-library_3:3.0.0" | ||
"org.scala-lang:scala3-library_3:3.1.3" | ||
], | ||
"relationship": "indirect", | ||
"package_url": "pkg:maven/com.lihaoyi/[email protected]" | ||
|
@@ -76,7 +76,7 @@ | |
"dependencies": [ | ||
"com.lihaoyi:fansi_3:0.3.1", | ||
"com.lihaoyi:sourcecode_3:0.2.8", | ||
"org.scala-lang:scala3-library_3:3.0.2" | ||
"org.scala-lang:scala3-library_3:3.1.3" | ||
], | ||
"relationship": "direct", | ||
"package_url": "pkg:maven/com.lihaoyi/[email protected]" | ||
|
@@ -98,7 +98,7 @@ | |
}, | ||
"dependencies": [ | ||
"com.lihaoyi:sourcecode_3:0.2.8", | ||
"org.scala-lang:scala3-library_3:3.0.2" | ||
"org.scala-lang:scala3-library_3:3.1.3" | ||
], | ||
"relationship": "indirect", | ||
"package_url": "pkg:maven/com.lihaoyi/[email protected]" | ||
|
@@ -118,8 +118,8 @@ | |
|
||
}, | ||
"dependencies": [ | ||
"junit:junit:4.13.1", | ||
"org.scala-lang:scala3-library_3:3.0.1", | ||
"junit:junit:4.13.2", | ||
"org.scala-lang:scala3-library_3:3.1.3", | ||
"org.scalameta:junit-interface:0.7.29" | ||
], | ||
"relationship": "direct", | ||
|
@@ -140,7 +140,7 @@ | |
|
||
}, | ||
"dependencies": [ | ||
"org.scala-lang:scala3-library_3:3.0.0" | ||
"org.scala-lang:scala3-library_3:3.1.3" | ||
], | ||
"relationship": "indirect", | ||
"package_url": "pkg:maven/com.lihaoyi/[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import mill._, scalalib._ | ||
import $exec.plugins | ||
import io.kipp.mill.github.dependency.graph.Graph | ||
import mill.eval.Evaluator | ||
import $ivy.`org.scalameta::munit:0.7.29` | ||
import munit.Assertions._ | ||
|
||
object minimal extends ScalaModule { | ||
def scalaVersion = "3.1.3" | ||
|
||
def ivyDeps = Agg( | ||
ivy"org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc:0.12.0" | ||
) | ||
} | ||
|
||
def verify(ev: Evaluator) = T.command { | ||
val manifestMapping = Graph.generate(ev)() | ||
assert(manifestMapping.size == 1) | ||
|
||
// We want to ensure that the transitive dependency of the above, which has a | ||
// range dependency doesn't end up in the actualy manifest as a range, but | ||
// the reconciled version. So we want to ensure `2.8.9` and not | ||
// `[2.8.6,2.0)`. | ||
val expected = Set( | ||
"org.scala-lang:scala-library:2.13.8", | ||
"org.scala-lang:scala3-library_3:3.1.3", | ||
"org.eclipse.lsp4j:org.eclipse.lsp4j.jsonrpc:0.12.0", | ||
"com.google.code.gson:gson:2.8.9" | ||
) | ||
|
||
assertEquals(manifestMapping.head._2.resolved.keys, expected) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters