Skip to content

Enable different Scala versions #340

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

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Conversation

mbland
Copy link
Contributor

@mbland mbland commented Sep 9, 2024

This updates //scala/extensions:config.bzl to provide a proper module API that allows the user to configure different Scala versions.

For now, 2.13.12 is the latest Scala 2 version supported by rules_scala (v6.6.0), defined in //third_party/repositories:scala_2_13.bzl. Setting it to a later version results in an error:

File "@io_bazel_rules_scala//third_party/repositories/repositories.bzl",
    line 86, column 17, in repositories
    fail(version_message % (scala_version, repository_scala_version))

Error in fail:
Scala config (2.13.14) version does not match repository version (2.13.12)

This updates //scala/extensions:config.bzl to provide a proper module
API that allows the user to configure different Scala versions.

For now, 2.13.12 is the latest Scala 2 version supported by rules_scala
(v6.6.0), defined in //third_party/repositories:scala_2_13.bzl. Setting
it to a later version results in an error:

```txt
File "@io_bazel_rules_scala//third_party/repositories/repositories.bzl",
    line 86, column 17, in repositories
    fail(version_message % (scala_version, repository_scala_version))

Error in fail:
Scala config (2.13.14) version does not match repository version (2.13.12)
```

Signed-off-by: Mike Bland <mbland@engflow.com>
@mbland mbland merged commit 988fe51 into main Sep 9, 2024
4 checks passed
@mbland mbland deleted the rules_scala-extension-updates branch September 9, 2024 21:25
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

Successfully merging this pull request may close these issues.

2 participants