Skip to content

[1.x] Avoid upstream compilation when calling previousCompile#7983

Merged
eed3si9n merged 2 commits into
sbt:1.10.xfrom
Friendseeker:lazy-previous-compile
Dec 31, 2024
Merged

[1.x] Avoid upstream compilation when calling previousCompile#7983
eed3si9n merged 2 commits into
sbt:1.10.xfrom
Friendseeker:lazy-previous-compile

Conversation

@Friendseeker

@Friendseeker Friendseeker commented Dec 31, 2024

Copy link
Copy Markdown
Member

Issue

previousCompile triggers upstream project compilation. So when user do show B / previousCompile, without the user knowing, upstream projects of B are compiled.

c.c. #7982

Fix

Avoid usage of compileIncSetup in previousCompile. compileIncSetup task triggers upstream compilation to gather upstream analysis.

Fix #7982

Comment thread main/src/main/scala/sbt/Defaults.scala
@eed3si9n eed3si9n merged commit fde334b into sbt:1.10.x Dec 31, 2024
@Friendseeker Friendseeker deleted the lazy-previous-compile branch December 31, 2024 18:05
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.

[1.x] previousCompile triggers upstream compile

2 participants