Skip to content

[2.x] Breaking change: Disable delegation of scoped keys on shell#8539

Merged
eed3si9n merged 1 commit intosbt:developfrom
eed3si9n:wip/no-delegate
Jan 17, 2026
Merged

[2.x] Breaking change: Disable delegation of scoped keys on shell#8539
eed3si9n merged 1 commit intosbt:developfrom
eed3si9n:wip/no-delegate

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n commented Jan 15, 2026

Fixes #3679

Problem

Currently the shell delegates request tasks even when a non-existent task like Compile / update is requested.

Solution

This removes the delegation, if the input key is scoped, so it will fail. We will, however, continue to delegate on the subproject axis, since it's useful to use Global or ThisBuild scoping.

@eed3si9n eed3si9n force-pushed the wip/no-delegate branch 2 times, most recently from 2c215b9 to 9ce4a27 Compare January 17, 2026 02:06
@eed3si9n eed3si9n changed the title [2.x] Disable delegation on shell [2.x] Breaking change: Disable delegation of scoped keys on shell Jan 17, 2026
**Problem**
Currently the shell delegates request tasks even when a non-existent
task like Compile / update is requested.

**Solution**
This removes the delegation, if the input key is scoped, so it will fail.
We will, however, continue to delegate on the subproject axis,
since it's useful to use Global or ThisBuild scoping.
@eed3si9n eed3si9n merged commit 8b4b89c into sbt:develop Jan 17, 2026
16 of 17 checks passed
@eed3si9n eed3si9n deleted the wip/no-delegate branch February 17, 2026 19: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.

Disable scope delegation in act

1 participant