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 build.sbt when upgrading sbt version #1388

Closed
anilkumarmyla opened this issue Mar 31, 2020 · 3 comments
Closed

Update build.sbt when upgrading sbt version #1388

anilkumarmyla opened this issue Mar 31, 2020 · 3 comments

Comments

@anilkumarmyla
Copy link
Contributor

Currently, updating sbt version is only reflected in file project/build.properties but there might be usages of the same in build.sbt (sometimes as crossSbtVersions) which is not updated.

Any reason for this? Ex: cb372/sbt-explicit-dependencies#61 does not update the value in build.sbt

@mzuehlke
Copy link
Member

As you mentioned sbt versions are currently only updated in files named build.properties see: https://github.com/fthomas/scala-steward/blob/master/modules/core/src/main/scala/org/scalasteward/core/io/package.scala#L31

It would be possible allow changes in "normal" source files to (as tested by isGenericSourceFile), but this could lead to too many changes. A problem that just happened with version numbers in text files (#1376).

Difficult decision.

@anilkumarmyla
Copy link
Contributor Author

hmm, yeah. closing

@fthomas
Copy link
Member

fthomas commented Apr 20, 2020

The file restriction is there since Scala Steward can update sbt versions (#665). I think we never tried updating sbt versions anywhere else.

If we allow Scala Steward to update sbt versions in other source files, it might produce a diff like cb372/sbt-explicit-dependencies@014427a (including the change in the .travis.yml) or it might produce more bad PRs (as @mzuehlke pointed out). Maybe we should give it a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants