Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mainargs to 0.7.4 #1543

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 17 additions & 14 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@ val isPublishableCommit =
publishBranches.exists(suffix => x.endsWith(s"/${suffix}"))
)

val latestTaggedVersion = try{
os.proc("git", "describe", "--abbrev=0", "--tags").call().out.trim
}catch{case e: os.SubprocessException =>
"dev"
}
val latestTaggedVersion =
try {
os.proc("git", "describe", "--abbrev=0", "--tags").call().out.trim
} catch {
case e: os.SubprocessException =>
"dev"
}

val gitHead = os.proc("git", "rev-parse", "HEAD").call().out.trim

val commitsSinceTaggedVersion = latestTaggedVersion match{
val commitsSinceTaggedVersion = latestTaggedVersion match {
case "dev" => 0
case latest =>
os.proc("git", "rev-list", gitHead, "--not", latest, "--count")
Expand Down Expand Up @@ -76,7 +78,7 @@ val assemblyCrossScalaVersions = Seq(
scala2_13Versions.last,
scala33Versions.last,
scala34Versions.last,
scala35Versions.last,
scala35Versions.last
)
def isScala2_12_10OrLater(sv: String): Boolean = {
(sv.startsWith("2.12.") && sv.stripPrefix("2.12.").length > 1) || sv.startsWith("2.13.")
Expand Down Expand Up @@ -120,7 +122,7 @@ object Deps {
val jlineReader = ivy"org.jline:jline-reader:3.14.1"
val jlineTerminal = ivy"org.jline:jline-terminal:3.14.1"
val jsch = ivy"com.jcraft:jsch:0.1.55"
val mainargs = ivy"com.lihaoyi::mainargs:0.5.4"
val mainargs = ivy"com.lihaoyi::mainargs:0.7.4"
val osLib = ivy"com.lihaoyi::os-lib:0.10.6"
val pprint = ivy"com.lihaoyi::pprint:0.9.0"
val requests = ivy"com.lihaoyi::requests:0.8.3"
Expand Down Expand Up @@ -253,9 +255,11 @@ trait AmmInternalModule extends CrossSbtModule with Bloop.Module {
def externalSources = T {
resolveDeps(allBoundIvyDeps, sources = true)()
}
def repositoriesTask = T.task {super.repositoriesTask() ++ Seq(
mvn"https://scala-ci.typesafe.com/artifactory/scala-integration"
) }
def repositoriesTask = T.task {
super.repositoriesTask() ++ Seq(
mvn"https://scala-ci.typesafe.com/artifactory/scala-integration"
)
}
override implicit def crossSbtModuleResolver: mill.define.Cross.Resolver[CrossModuleBase] =
new mill.define.Cross.Resolver[CrossModuleBase] {
def resolve[V <: CrossModuleBase](c: Cross[V]): V = {
Expand Down Expand Up @@ -551,7 +555,7 @@ object amm extends Cross[MainModule](fullCrossScalaVersions) {
(super.resources() ++
ReplModule.this.sources() ++
ReplModule.this.externalSources() ++
resolveDeps(T.task{ ivyDeps().map(bindDependency())}, sources = true)()).distinct
resolveDeps(T.task { ivyDeps().map(bindDependency()) }, sources = true)()).distinct
}
def ivyDeps = super.ivyDeps() ++ amm.compiler().ivyDeps() ++ Agg(
Deps.scalazCore
Expand Down Expand Up @@ -663,7 +667,7 @@ trait MainModule extends AmmModule {
// Need to duplicate this from MainModule due to Mill not properly propagating it through
def runClasspath =
Seq(thinWhitelist()) ++
super.runClasspath() ++
super.runClasspath() ++
terminal().sources() ++
amm.util().sources() ++
amm.runtime().sources() ++
Expand All @@ -674,7 +678,6 @@ trait MainModule extends AmmModule {
sources() ++
externalSources()


}
}

Expand Down
Loading