Skip to content

[2.x] fix: IgnoreSourceChanges now works#8820

Merged
eed3si9n merged 2 commits intosbt:developfrom
seroperson:i6773-on-changed-build-source
Feb 28, 2026
Merged

[2.x] fix: IgnoreSourceChanges now works#8820
eed3si9n merged 2 commits intosbt:developfrom
seroperson:i6773-on-changed-build-source

Conversation

@seroperson
Copy link
Copy Markdown
Contributor

@seroperson seroperson commented Feb 26, 2026

Previously onChangedBuildSource := IgnoreSourceChanges was literally (mostly) ignored.

  • Added the explicit if-branch in CheckBuildSources.scala to ignore changes if IgnoreSourceChanges is set.
  • Minor Defaults.scala edit to not include root *.sbt files if onChangedBuildSource set to IgnoreSourceChanges. There is already the same check in CheckBuildSources.buildSourceFileInputs logic, which also seems like covers that glob too, so I even unsure whether this append is necessary at all.
  • Added scripted test to check if the warning was logged.

Closes #6773

@seroperson seroperson force-pushed the i6773-on-changed-build-source branch 3 times, most recently from abdc533 to a0c9c53 Compare February 26, 2026 15:38
Comment on lines +151 to +152
} else if (onChanges == IgnoreSourceChanges) {
false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for fixing this!

@seroperson seroperson requested a review from eed3si9n February 27, 2026 19:31
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

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

Thanks!

@eed3si9n eed3si9n merged commit 33d86d0 into sbt:develop Feb 28, 2026
15 checks passed
eed3si9n pushed a commit to eed3si9n/sbt that referenced this pull request Mar 1, 2026
eed3si9n added a commit that referenced this pull request Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Global / onChangedBuildSource := IgnoreSourceChanges has no effect

2 participants