nimble icon indicating copy to clipboard operation
nimble copied to clipboard

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

Open iffy opened this issue 4 weeks ago • 1 comments

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?

iffy avatar Jun 29 '24 03:06 iffy