go2nix icon indicating copy to clipboard operation
go2nix copied to clipboard

Does the package need to be a git repository?

Open CMCDragonkai opened this issue 6 years ago • 3 comments

The readme seems to imply that the code that you're packaging up needs to be a git repository? Can it be brought in otherways? I may have just a directory under src, and that is not a git repository.

CMCDragonkai avatar Feb 22 '18 02:02 CMCDragonkai

It tries to find out what's the version of your package by looking for git history. So it should be git controlled at the moment.

kamilchm avatar Feb 24 '18 08:02 kamilchm

Is this what causes Error while creating repo for /build/src/some.domain/go/some-project: Unable to retrieve local repo information?

Though I'm a bit confused by that message because I'm pretty sure my package is a git repo, but I'm still debugging.

deliciouslytyped avatar May 08 '19 14:05 deliciouslytyped

Ok I'm trying to use go2nix save on a repository acquired via fetchgit and the .git looks kind of odd.

Edit: fetchgit results in some kind of strange .git. Also apparently there can be determinism issues if one keeps the .git, which makes sense because it could contain other branches and such. I solved the problem temporarily by just using normal git to get the repo I needed.

deliciouslytyped avatar May 08 '19 14:05 deliciouslytyped