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

nimble setup adds empty lines to config.nims #1181

Closed
narimiran opened this issue Feb 6, 2024 · 0 comments · Fixed by #1193
Closed

nimble setup adds empty lines to config.nims #1181

narimiran opened this issue Feb 6, 2024 · 0 comments · Fixed by #1193
Assignees

Comments

@narimiran
Copy link
Member

Running nimble setup (multiple times), every time there is some change in config.nims, it also adds a new empty line at the top of it.

--- a/config.nims
+++ b/config.nims
@@ -1,6 +1,8 @@
 
 
+
 # begin Nimble config (version 2)
+--noNimblePath
 when withDir(thisDir(), system.fileExists("nimble.paths")):
   include "nimble.paths"
 # end Nimble config

Notice that two empty lines already exist (from previous buggy runs of that command), and now it adds a third empty line.

Removing nimble.lock and nimble.paths and running nimble setup again, produces:

--- a/config.nims
+++ b/config.nims
@@ -1,5 +1,7 @@
 
 
+
+
 # begin Nimble config (version 2)
 when withDir(thisDir(), system.fileExists("nimble.paths")):
   include "nimble.paths"

Now, running nimble lock and then nimble setup produces:

--- a/config.nims
+++ b/config.nims
@@ -1,6 +1,10 @@
 
 
+
+
+
 # begin Nimble config (version 2)
+--noNimblePath
 when withDir(thisDir(), system.fileExists("nimble.paths")):
   include "nimble.paths"
 # end Nimble config
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