Skip to content

Global / onChangedBuildSource := IgnoreSourceChanges has no effect #6773

@fdietze

Description

@fdietze

steps

I have the following line at the top of my build.sbt:

Global / onChangedBuildSource := IgnoreSourceChanges`
  1. I have a running sbt session (sbt 1.6.1)
  2. I change something in my build.sbt
  3. I run compile in the sbt session

problem

I see this warning, even though I have disabled it with the suggested setting:

[warn] build source files have changed
[warn] modified files:
[warn]   /[...]/build.sbt
[warn] Apply these changes by running `reload`.
[warn] Automatically reload the build when source changes are detected by setting `Global / onChangedBuildSource := ReloadOnSourceChanges`.
[warn] Disable this warning by setting `Global / onChangedBuildSource := IgnoreSourceChanges`.

expectation

The warning should not be displayed at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions