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

[1.x] Use inclusive language on internal terminology #1505

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

Friendseeker
Copy link
Member


private[this] def scalaLib(scalaHome: File): File =
new File(scalaHome, "lib")

private[this] val blacklist: Set[String] = Set(
private[this] val excludeList: Set[String] = Set(
Copy link
Member Author

@Friendseeker Friendseeker Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw I actually don't understand what does the excludeList do, but I guess there's probably a better way compared to special casing a bunch of jars...

If someone can decipher what's going on, might be able to remove excludeList altogether.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely this code is related to sbt and Zinc's use of layered classloader, where we construct ClassLoader instance using Scala distribution of a specific version (scala-library.jar etc) for performance. In this case, we're trying to exclude non-essential JARs that were historically distributed and/or placed in scalaHome (for scala compiler developers this could be someone on disk)?

@eed3si9n eed3si9n merged commit 9a3af98 into sbt:1.10.x Nov 26, 2024
9 checks passed
@Friendseeker Friendseeker deleted the remove-blacklist-usage branch November 26, 2024 09:17
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