You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Scala CLI sets many values implicitly, such as Scala Version, Scala.js / Native Version, etc. Additionally, dependencies may be added with the latest.release version. While this is excellent for development and rapid prototyping, eventually you may want a stable, reproducible build when you deploy into production.
Describe the solution you'd like
A way for Scala CLI to provide or rewrite all the relevant directives to get a stable, reproducible build.
Describe alternatives you've considered
You can attempt to do this manually, but it's not always obvious all the things that are necessary to pin, and it takes some effort to track down the versions.
For example there is a --js-cli-version option that must also be pinned if you want stability/reproducibility, but this is marked as an "internal" option.
Thanks for reporting! I think this would be nice to have, but we don't have currently the capacity to work on it.
I think this should be an additional command that we could group all the potential fixes maybe together with scalafix (could it even be a scalafix rule)?
Something like: scala fix [rules]
Rules could be the scalafix ones or ones provided by default.
I think this should be an additional command that we could group all the potential fixes maybe together with scalafix (could it even be a scalafix rule)?
Something like: scala fix [rules]
Agreed. Related discussion about scala-cli-centric fixes as scalafix rules: #3400 (comment).
Is your feature request related to a problem? Please describe.
Scala CLI sets many values implicitly, such as Scala Version, Scala.js / Native Version, etc. Additionally, dependencies may be added with the
latest.release
version. While this is excellent for development and rapid prototyping, eventually you may want a stable, reproducible build when you deploy into production.Describe the solution you'd like
A way for Scala CLI to provide or rewrite all the relevant directives to get a stable, reproducible build.
Describe alternatives you've considered
You can attempt to do this manually, but it's not always obvious all the things that are necessary to pin, and it takes some effort to track down the versions.
For example there is a
--js-cli-version
option that must also be pinned if you want stability/reproducibility, but this is marked as an "internal" option.Additional context
See also scala/toolkit#20 (comment).
The text was updated successfully, but these errors were encountered: