-
Notifications
You must be signed in to change notification settings - Fork 149
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
Add sbt/setup-sbt
#469
Add sbt/setup-sbt
#469
Conversation
Changed repositories: Legends: |
@Friendseeker Scala Steward gets the sbt version from That version number will then be replaced in all files matching this pattern: https://github.com/scala-steward-org/scala-steward/blob/0bc0acba0ace93f4fc40f752170dd187d80d3404/docs/repo-specific-configuration.md?plain=1#L120 |
So here's a pull request I got from the robot today sbt/setup-sbt#15. I don't know the implementation of scala-steward, but I don't see how it would know that the sbt version in default: 1.10.3 |
Guess Scala Steward's algorithm is being overly pessimistic in this case... Wonder if Scala Steward's algorithm can be improved somehow. If not, I guess I can write a custom bot tailed for |
🤔 |
test("keyword with extra underscore") {
val update =
("org.scala-js".g % Nel.of("sbt-scalajs".a, "scalajs-compiler".a) % "1.1.0" %> "1.1.1").group
val original = Map(
".travis.yml" -> """ - SCALA_JS_VERSION=1.1.0""",
"project/plugins.sbt" -> """val scalaJsVersion = Option(System.getenv("SCALA_JS_VERSION")).getOrElse("1.1.0")"""
)
val expected = Map(
".travis.yml" -> """ - SCALA_JS_VERSION=1.1.1""",
"project/plugins.sbt" -> """val scalaJsVersion = Option(System.getenv("SCALA_JS_VERSION")).getOrElse("1.1.1")"""
)
runApplyUpdate(update, original, expected)
} so I'm guessing that YAML works for |
@eed3si9n @SethTisue good to go?
Btw I would also want to inquire whether changes are needed at
sbt/setup-sbt
too. I don't know how Scala Steward works but here's the only reference to sbt version insbt/setup-sbt
.https://github.com/sbt/setup-sbt/blob/0e649c9d325023db10f4c28603a7870d04c16141/action.yml#L7
Do we need to add a
build.properties
file insbt/setup-sbt
for Scala Steward to pick up the sbt version & updateaction.yml
?