bazel-contrib / bazel-contrib/rules_scala

rule's "scalacopts" should get higher priority than toolchain "scalacopts"

Open
#382 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Starlark
Stars
384
Forks
292
Avg merge
2d 21h
Merged PRs (30d)
46

Description

In `scalacopts` there are some options that can be overridden by their last occurrance and some options that are aggregated

We need a test that makes sure that options that come from library rule `scalacopts` comes after any option that comes from toolchain's `scalacopts`

On #364 I did not add such test and I think it should be added.

Contributor guide

Open the contributing guide

Research direction

Locate the scalacopts handling and review the test changes from #364, then trace how library-rule and toolchain options are ordered. Add a test that verifies library rule scalacopts occur after toolchain scalacopts, including options whose last occurrence wins and options that aggregate.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system, testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.