sbt/main-command/src/main
bitloi d633de5c3f
[2.x] fix: Detect alias/task key name conflicts (#8659)
Problem
When a user defines an alias with a name that matches an existing task or setting key (e.g., `alias c = compile` when a custom task `c` exists), the alias silently wins and shadows the task.

Solution
Detect conflicts at alias creation time and fail with an error message:
```
Alias 'c' conflicts with a task or setting key of the same name. Use a different alias name to avoid ambiguity.
```
2026-01-31 17:56:42 -05:00
..
contraband add `codecPackage` annotation to `state.contra` 2024-10-19 07:31:07 +09:00
contraband-scala/sbt Apply Contraband 2025-09-28 21:28:21 -04:00
java/sbt/internal Revert "[2.x] feat: Enable musl static linking for sbtn on JDK 17+ (#8464)" (#8557) 2026-01-16 00:06:28 -05:00
scala [2.x] fix: Detect alias/task key name conflicts (#8659) 2026-01-31 17:56:42 -05:00