Skip to content
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

Add a nimble clean command to clean up build files. #555

Closed
davidgarland opened this issue Oct 11, 2018 · 2 comments
Closed

Add a nimble clean command to clean up build files. #555

davidgarland opened this issue Oct 11, 2018 · 2 comments

Comments

@davidgarland
Copy link

Having a built-in nimble clean command that cleans up any test or binary files that have been built via for instance nimble build would be nice. Not quite as pressing of an issue now that nimcache in the local directory isn't a thing, but it would still be a huge improvement over having to write

task clean, "Cleans up files":
  exec "rm <project_binary_name_here>"

for every project.

@jabbalaci
Copy link
Contributor

jabbalaci commented Oct 19, 2018

I just noticed that "nimble test" creates a binary file for every test file in the tests/ folder. It would be nice if nimble test could do a cleanup, for instance via an option: nimble test --clean.

Edit: nimble test creates binaries for tests/*.nim files. Collect tests/*.nim, cut off the ".nim" extension, and you get the binaries. Under Windows add ".exe". These can be deleted IMO.

@dom96
Copy link
Collaborator

dom96 commented Oct 19, 2018

Indeed, Nimble should clean up test binaries by default. Seems like an easy PR ;)

This means that this issue has two tasks now:

  • nimble clean
  • nimble test cleaning the binaries it creates automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants