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

Fix #102: Do not overwrite other plugins' scalacOptions. #126

Merged

Conversation

sjrd
Copy link
Contributor

@sjrd sjrd commented Oct 28, 2022

We now maintain a set of ScalacOptions "managed" by sbt-tpolecat. When computing scalacOptions, we do not overwrite them, but instead we get the previous scalacOptions.value and we modify it.

We only remove options that are managed by sbt-tpolecat. And we only add options that are not already there (because they were already added in an upper delegate scope).

By default, we automatically compute the set of managed options as all the options that are "ever" added once by sbt-tpolecat in the delegate chain.

We now maintain a set of `ScalacOptions` "managed" by sbt-tpolecat.
When computing `scalacOptions`, we do not overwrite them, but
instead we get the previous `scalacOptions.value` and we modify it.

We only remove options that are managed by sbt-tpolecat. And we
only add options that are not already there (because they were
already added in an upper delegate scope).

By default, we automatically compute the set of managed options as
all the options that are "ever" added once by sbt-tpolecat in the
delegate chain.
@sjrd
Copy link
Contributor Author

sjrd commented Nov 17, 2022

Ping @DavidGregory084 ?

@DavidGregory084
Copy link
Member

Sorry for the long delay @sjrd, I fell down a rabbit hole on another project. This is awesome! Thanks so much for your work on this 🙇

@DavidGregory084 DavidGregory084 merged commit 1b8d73a into typelevel:main Jan 6, 2023
@sjrd sjrd deleted the no-remove-other-plugins-options branch January 6, 2023 19:52
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.

None yet

2 participants