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

Combine RepoConfig with the one taken the higher importance on the right side #3346

Merged
merged 1 commit into from
May 7, 2024

Conversation

mzuehlke
Copy link
Member

@mzuehlke mzuehlke commented May 6, 2024

This is done in the RepoConfigLoader with the default config and the supplied additional configs. And now here in the same way.

The RepoConfig.combine function treats the 2nd argument as the one overwriting the 1st one in cas emerging doesn't make sense. This applies at the moment only for "pin".

This fixes the problem reported in typelevel/sbt-typelevel#703 (comment)
Without the fix the https://github.com/typelevel/sbt-typelevel/blob/main/.scala-steward.conf was overwriting the config supplied by the repo https://github.com/typelevel/sbt-typelevel/blob/main/.scala-steward.conf
This became a problem after #3305 and resulted in a not wanted pull request: typelevel/sbt-typelevel#703

…right side.

This is done in the `RepoConfigLoader` with the default config and the supplied additional configs.
And now here in the same way.

The `RepoConfig.combine`  function treats the 2nd argument as the one overwriting the 1st one in cas emerging doesn't make sense. This applies at the moment only for "pin".
@mzuehlke mzuehlke added the bug Something isn't working label May 6, 2024
@mzuehlke mzuehlke merged commit 2c8d00f into main May 7, 2024
8 checks passed
@mzuehlke mzuehlke deleted the combine-order branch May 7, 2024 06:12
@mzuehlke mzuehlke added this to the 0.30.1 milestone May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants