question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`sbt new` should not create a target directory in the working directory

See original GitHub issue

steps

run sbt new scala/hello-world.g8

problem

this creates ./target/... directories

expectation

no garbage target directory is created

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
dexter2305commented, Oct 15, 2019

Is this fix ported to 1.3.2? Downgrading to 1.2.1, fixes the issue but the issue recurs in version 1.3.2.

3reactions
drewboardmancommented, Jan 23, 2021

This happens in 1.4.4

Read more comments on GitHub >

github_iconTop Results From Across the Web

sbt new should not create a target directory in the working ...
steps. sbt version: 1.3.1 run sbt new scala/hello-world.g8. problem. this creates ./target/... directories. expectation. Current working ...
Read more >
Why does "sbt new" create a directory named "target" in ...
Above command created a directory named 'target' under 'my-projects-dir'. Project home (play-scala-seed) got created sucessfully (and even ...
Read more >
sbt Reference Manual — General Best Practices
For generating sources and resources, see Generating Files. Don't hard code. Don't hard code constants, like the output directory target/ . This is...
Read more >
and project/target/ : r/scala - Reddit
The project/target directory is the directory that sbt uses to place the binaries that will build your software.
Read more >
Way to "really clean" a project - Google Groups
I tried things like running "sbt clean" in the project directory, which does remove project/target files, but also leaves new files behind.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found