nim-lang / nimble

Package manager for the Nim programming language.
Other
1.24k stars 173 forks source link

Why does nimble lock require me to be in a version control system? #1231

Open iffy opened 1 week ago

iffy commented 1 week ago

I'm bumping into this error

syncfile.nim(48)         getSyncFilePath

    Error:  Sync file require current working directory to be under some supported type of version control.
     Hint:  Put package's working directory under version control.

From here: https://github.com/nim-lang/nimble/blob/be2f1309b35a6189ff5eb34a007793e6d3f94157/src/nimblepkg/syncfile.nim#L49

I'm not sure I understand why it's a requirement that nimble lock can only run when inside a version-controlled project. Would a PR to allow nimble lock to run outside a version-controlled project be accepted?

Araq commented 1 week ago

Would a PR to allow nimble lock to run outside a version-controlled project be accepted?

Certainly.