Skip to content

[1.x] fix: Avoid creating target on sbt -V #8066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 16, 2025
Merged

Conversation

eed3si9n
Copy link
Member

Fixes #8065

Problem

sbt -V tries to show both the sbt version and the runner version, and ends up creating target directory even on a non-sbt directory.

Solution

If the current directory doesn't have a build, just display the runner version.

**Problem**
sbt -V tries to show both the sbt version and the runner version,
and ends up creating target directory even on a non-sbt directory.

**Solution**
If the current directory doesn't have a build, just display the runner version.
@eed3si9n eed3si9n merged commit 9c08aea into sbt:1.10.x Mar 16, 2025
9 checks passed
@eed3si9n eed3si9n deleted the wip/v branch March 16, 2025 06:29
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.

sbt --version and sbt -V create a new target/ directory
1 participant