Skip to content

[2.0.x] bport: Unresolved dependency error for Coursier#8961

Merged
eed3si9n merged 1 commit intosbt:2.0.xfrom
eed3si9n:bport/dependency-path
Mar 23, 2026
Merged

[2.0.x] bport: Unresolved dependency error for Coursier#8961
eed3si9n merged 1 commit intosbt:2.0.xfrom
eed3si9n:bport/dependency-path

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

This is a backport of #8869 to 2.0.x branch.

Fixes unresolved dependency path reporting for Coursier (ResolveException.failedPaths) and adds a stable scripted regression.

This PR addresses 5168 by reconstructing unresolved dependency caller chains from the Coursier resolution graph and attaching them to ResolveException.failedPaths. That allows unresolved warnings to show the full path from the missing module up to the root project.

It also adds and stabilizes lm-coursier/unresolved-path scripted coverage by:

  • using a local test Maven repo fixture (no flaky remote test dependency)
  • checking update stream output via an sbt task (checkLog) instead of shell grep
  • asserting the unresolved path includes missing module, transitive caller, and root project

Fixes unresolved dependency path reporting for Coursier (`ResolveException.failedPaths`) and adds a stable scripted regression.

This PR addresses 5168 by reconstructing unresolved dependency caller chains from the Coursier resolution graph and attaching them to `ResolveException.failedPaths`. That allows unresolved warnings to show the full path from the missing module up to the root project.

It also adds and stabilizes `lm-coursier/unresolved-path` scripted coverage by:
- using a local test Maven repo fixture (no flaky remote test dependency)
- checking update stream output via an sbt task (`checkLog`) instead of shell `grep`
- asserting the unresolved path includes missing module, transitive caller, and root project
@eed3si9n eed3si9n changed the title [2.0.x] fix: Unresolved dependency error for Coursier (#8869) [2.0.x] bport: Unresolved dependency error for Coursier Mar 23, 2026
@eed3si9n eed3si9n merged commit db41205 into sbt:2.0.x Mar 23, 2026
15 checks passed
@eed3si9n eed3si9n deleted the bport/dependency-path branch March 23, 2026 01:53
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