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

Proposal: Exclude akka by default #2708

Closed
lukestephenson opened this issue Sep 7, 2022 · 14 comments
Closed

Proposal: Exclude akka by default #2708

lukestephenson opened this issue Sep 7, 2022 · 14 comments

Comments

@lukestephenson
Copy link

Users that bump akka based on a scala steward PR may find themselves accidentally in violation of changed licence terms. https://www.lightbend.com/blog/why-we-are-changing-the-license-for-akka.

I don't imagine it's too hard to ignore this dependency by default in Scala Steward. What I don't see is an easy way to unignore the default for end users that actually want the updates.

@tgodzik
Copy link
Contributor

tgodzik commented Sep 8, 2022

I wonder where would we need to disable it actually, it might only be possible on a particular repo currently. This looks like something we should change inside of Scala Steward itself. Or maybe is there a setting to disable it on a particular runner?

But I strongly agree we should not let people upgrade by mistake.

@tgodzik
Copy link
Contributor

tgodzik commented Sep 8, 2022

Och, we could use the same trick as we do with Scala releases https://github.com/scala-steward-org/scala-steward/pull/2706/files

@tgodzik
Copy link
Contributor

tgodzik commented Sep 8, 2022

One thing that worries me is how would we be able to override the ignore section as the configurations are merged. Maybe we should instead have additional config for allowed-licenses, which could be overridden.

However, I think it would be good to update ignored section for akka for the time being.

@tgodzik
Copy link
Contributor

tgodzik commented Sep 8, 2022

I raised a PR here: #2709

WiP for now.

@lefou
Copy link
Member

lefou commented Sep 8, 2022

Instead of auto-applying white- or black-lists, we should instead support filtering by license. License information is included in Maven Central published poms. We should by-default only accept open source licenses. Users/Projects who acquired commercial licenses can then add those projects coordinates to their project config.

@tgodzik
Copy link
Contributor

tgodzik commented Sep 8, 2022

Instead of auto-applying white- or black-lists, we should instead support filtering by license. License information is included in Maven Central published poms. We should by-default only accept open source licenses. Users/Projects who acquired commercial licenses can then add those projects coordinates to their project config.

That's what I was thinking of doing next, just not sure about how long it will take me to implement 😓

@xuwei-k
Copy link
Contributor

xuwei-k commented Oct 19, 2022

@exoego
Copy link
Contributor

exoego commented Oct 19, 2022

Closing as resolved in #2709
Please not that akka exclusion is not 100%-guaranteed.
It may be slipped if akka is used as a transitive dependency.

@an-tex
Copy link

an-tex commented Mar 29, 2023

how can i enable the upgrade of akka? (without disabling the default config alltogether)

@tgodzik
Copy link
Contributor

tgodzik commented Mar 29, 2023

I think you should be able to just create your scala-steward.conf file and that should be used instead of the default?

@an-tex
Copy link

an-tex commented Mar 29, 2023

@tgodzik thanks for your reply. I have a scala-steward.conf file so I thought the default and my own one are merged, there's also a CLI option

    --disable-default-repo-config
        Whether to disable the default repo config file

Looking at https://github.com/scala-steward-org/scala-steward/blob/main/modules/core/src/main/scala/org/scalasteward/core/repoconfig/RepoConfigLoader.scala#L35 the config files are merged

@mzuehlke
Copy link
Member

@an-tex you would need to disable the global config.
and copy what you still want from the global default into your local scala-steward.conf.

Merging has no option to "overwrite" the ignore from the global config.

@an-tex
Copy link

an-tex commented Mar 29, 2023

thanks @mzuehlke then i'll do that. just a shame i'll have to check for changes in the default config for every new release of scala steward then :/

@tgodzik
Copy link
Contributor

tgodzik commented Mar 29, 2023

We should base this on the license instead, but I wasn't able to work on it. We should have a list of accepted licenses, which can be easily overriden in the local config.

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

No branches or pull requests

7 participants