mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-09 07:13:35 -05:00
Build fails on FreeBSD #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jacquesh on GitHub (Sep 18, 2021).
I'd be interested in trying out vikunja hosted on my TrueNAS server at home, to replace Kanboard (which doesn't look nearly as pretty as vikunja!).
Since there are no binary downloads for FreeBSD my only option is to build it from source, however when I try to do so, it fails with a rather unhelpful error message (I'm running FreeBSD 12.2):
@kolaente commented on GitHub (Sep 21, 2021):
I've seen this before but I'm not sure what is causing it. The build should work though with
go build .. Could you test that?@jacquesh commented on GitHub (Sep 22, 2021):
Confirmed:
go build .does indeed build successfully as expected \o/Also I can confirm that it appears to work correctly, in the sense that I can point the frontend at it and it functions, in case there was a concern about missing config or something
@kolaente commented on GitHub (Sep 24, 2021):
I've just pushed a change in
bb086eb9f8which should give us better error messages. Can you try that and send me the output? It probably still won't work but at least we should know why.@jacquesh commented on GitHub (Sep 28, 2021):
As expected it still doesn't work but now produces significantly more information:
Hopefully that helps?
@kolaente commented on GitHub (Sep 29, 2021):
Looks like this is the root cause: https://gitlab.com/cznic/libc/-/issues/11 (Vikunja is using that library, though not directly)
I'm not sure what to do about it other than to ping the dev in the issue. Open for ideas.
@jacquesh commented on GitHub (Sep 30, 2021):
Is the call to list go packages required if one is just building? I'm not particularly familiar with mage but it looks like the results of that command are only used for tests? If that could only be run when running tests then I expect the build would at least complete successfully? If I comment out the line that calls
setApiPackagesthen it builds as expected.On a related note, what would it take to get FreeBSD added to the list of pre-built binaries? I don't see anything in the repo that obviously handles CI/builds.
@kolaente commented on GitHub (Oct 2, 2021):
It looks like it, yes. I've changed that in
73a99ebd92so that the function is only called when testing. Please test.@jacquesh commented on GitHub (Oct 2, 2021):
Awesome, looks like it builds just fine with mage now :) Thanks!