Closed djspiewak closed 4 years ago
Also scalajs things:
scalacOptions += {
val hasVersion = git.gitCurrentTags.value.map(git.gitTagToVersionNumber.value).flatten.nonEmpty
val versionOrHash =
if (hasVersion)
s"v${version.value}"
else
git.gitHeadCommit.value.get
val l = (baseDirectory in LocalRootProject).value.toURI.toString
val g = s"https://raw.githubusercontent.com/typelevel/cats-effect/$versionOrHash/"
s"-P:scalajs:mapSourceURI:$l->$g"
},
It surprises me that I never did this: