use package.json for version information? HG no .git.
$ oclif-dev pack
fatal: not a git repository (or any of the parent directories): .git
Error: Command failed: git rev-parse --short HEAD
null
at makeError (~/.npm-global/lib/node_modules/@oclif/dev-cli/node_modules/execa/index.js:172:9)
at Promise.all.then.arr (~/.npm-global/lib/node_modules/@oclif/dev-cli/node_modules/execa/index.js:277:16)
at
we use mercurial for scm, no .git dir
shouldnt it be using package.json .version?
yes, we should be compatible with non-git repos
I initiated a git folder in the project and committed files to fix this issue, But this should be handled in a proper way.
I too am bumping into this error, but in a different context. I am using a Dockerfile to build my CLI and intentionally do not want or need my Git repo in my image.
My workaround is similar to that of @NipunaPrashan where I am installing git and running git init .. I would rather not have to do this, as it's not clear why git is a dependency for oclif.