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

Validate repository Scala version against scala_config #1436

Merged

Conversation

liucijus
Copy link
Collaborator

Description

Add validation to prevent Scala version mismatch between scala_config and default repositories.

In case there are no overrides, we fail the build if Scala version in scala_config does not match available version in default repositories.

Additionally, macros rules_scala_toolchain_deps_repositories and rules_scala_setup are exported for easier setup of Rules Scala dependencies.

Motivation

Without validation it is easy to get wrong version loaded under the impression that scala_config controls dependency versions.

For example, such maintenance as in #1434 would get better feedback when Scala version is not properly configured

In case there are no overrides, we fail the build if Scala version in scala_config does not match available version in default repositories.

Additionally, macros `rules_scala_toolchain_deps_repositories` and `rules_scala_setup` are exported for easier setup of Rules Scala dependencies
@liucijus liucijus force-pushed the validate-repositories-scala-version branch from a744041 to fb8f661 Compare October 17, 2022 10:40
@liucijus liucijus merged commit 1373d30 into bazelbuild:master Oct 20, 2022
@liucijus liucijus deleted the validate-repositories-scala-version branch October 20, 2022 06:50
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