Empty version strings when building from tarball #32

Open
opened 2023-06-16 22:09:00 +00:00 by mal · 0 comments

I'm attempting to build the autobindings from an archive downloaded from gitea. The Makefile uses git to set the buildid and buildVer. There's no .git folder in the archive, so this fails with fatal: No names found, cannot describe anything resulting in -buildid=autobindings- -X main.buildVer=autobindings- (only "autobindings-" instead of appending anything).

An easy fallback would be the ability to set those with make -D or environment variables.

n.b. This also affects libcwtch-go.

I'm attempting to build the autobindings from an archive [downloaded](https://git.openprivacy.ca/api/v1/repos/cwtch.im/autobindings/archive/v0.0.5.tar.gz) from gitea. The Makefile [uses git](https://git.openprivacy.ca/cwtch.im/autobindings/src/tag/v0.0.5/Makefile#L30) to set the buildid and buildVer. There's no `.git` folder in the archive, so this fails with `fatal: No names found, cannot describe anything` resulting in `-buildid=autobindings- -X main.buildVer=autobindings-` (only "autobindings-" instead of appending anything). An easy fallback would be the ability to set those with `make -D` or environment variables. n.b. This also affects [libcwtch-go](https://git.openprivacy.ca/cwtch.im/libcwtch-go/src/tag/v1.10.5/Makefile#L19).
sarah added the
bug
infra
labels 2023-06-16 22:15:59 +00:00
dan was assigned by sarah 2023-06-16 22:16:02 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/autobindings#32
No description provided.