-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Problem
Running ksrc from a composite build root (uses includeBuild) resolves only the root project and does not traverse included builds. This makes ksrc search return no sources even though the included build has the dependencies.
Repro
In an app monorepo, root includes an app via includeBuild("apps/app1").
ksrc search "pro.respawn.flowmvi:*" -q "fun.*updateState"Actual
E_NO_SOURCES: no sources resolved.
Expected
From composite root, resolve across included builds by default (or at least provide a clear error + guidance). The spec currently says multi-project builds resolve all subprojects by default; composite builds are not covered and should probably follow the same spirit.
Workaround
Run from the included build root instead:
cd ../apps/app1
ksrc search "pro.respawn.flowmvi:*" -q "fun.*updateState"Notes
- Root
settings.gradle.ktsusesincludeBuild("apps/app1"). ksrccurrently uses a Gradle init script that walksroot.allprojects, which does not include included builds.- The recent fix for Gradle exclusive-lock errors moved resolution into per-project tasks; any composite build support should avoid reintroducing the lock issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels