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

Deprecate resolveFilter stuff #4162

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alexarchambault
Copy link
Contributor

@alexarchambault alexarchambault commented Dec 18, 2024

This PR makes Mill stop relying on the resolveFilter parameter of CoursierSupport#resolveDependencies.

This parameter manually filters the artifacts provided by coursier, but not the ones originating from "local dependencies" (Mill's hack to use freshly built workers and plugins during tests), where it seems such a filtering was done in the build (by customizing testDepPaths). "Local dependencies" cannot be kept as-is in #4145 (where such dependencies aren't necessarily root dependencies anymore, making it harder to handle them in a different fashion). Hence the need to stop using resolveFilter.

Rather than filtering artifacts after dependency resolution, this PR marks unwanted dependencies of workers as compile-time only. That way, they're not pulled by dependency resolution, and we don't need to manually filter artifacts.

So that we don't need to resort to "resolveFilter" stuff to keep
only their main JAR
@alexarchambault
Copy link
Contributor Author

The CI errors seem unrelated to these changes (I can't reproduce them locally)

@lihaoyi
Copy link
Member

lihaoyi commented Dec 18, 2024

Yes we've been seeing flakiness in ci, i'll rerun them

alexarchambault added a commit to alexarchambault/mill that referenced this pull request Dec 18, 2024
alexarchambault added a commit to alexarchambault/mill that referenced this pull request Dec 18, 2024
alexarchambault added a commit to alexarchambault/mill that referenced this pull request Dec 18, 2024
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