Coder Social home page Coder Social logo

Build fails on FreeBSD about vikunja HOT 8 CLOSED

jacquesh avatar jacquesh commented on May 24, 2024
Build fails on FreeBSD

from vikunja.

Comments (8)

kolaente avatar kolaente commented on May 24, 2024

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?

from vikunja.

jacquesh avatar jacquesh commented on May 24, 2024

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

from vikunja.

kolaente avatar kolaente commented on May 24, 2024

I've just pushed a change in bb086eb which 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.

from vikunja.

jacquesh avatar jacquesh commented on May 24, 2024

As expected it still doesn't work but now produces significantly more information:

root@vikunja:~/api # mage -v build:build
Running target: Build:Build
Running dependency: initVars
Error getting packages: error running command: package modernc.org/libc/errno: build constraints exclude all Go files in /root/go/pkg/mod/modernc.org/[email protected]/errno
package modernc.org/libc/signal: build constraints exclude all Go files in /root/go/pkg/mod/modernc.org/[email protected]/signal
package modernc.org/libc/sys/types: build constraints exclude all Go files in /root/go/pkg/mod/modernc.org/[email protected]/sys/types
package modernc.org/libc/time: build constraints exclude all Go files in /root/go/pkg/mod/modernc.org/[email protected]/time
package modernc.org/libc/unistd: build constraints exclude all Go files in /root/go/pkg/mod/modernc.org/[email protected]/unistd
package modernc.org/tcl/lib: build constraints exclude all Go files in /root/go/pkg/mod/modernc.org/[email protected]/lib
, exit status 1
root@vikunja:~/api #

Hopefully that helps?

from vikunja.

kolaente avatar kolaente commented on May 24, 2024

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.

from vikunja.

jacquesh avatar jacquesh commented on May 24, 2024

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 setApiPackages then 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.

from vikunja.

kolaente avatar kolaente commented on May 24, 2024

It looks like it, yes. I've changed that in 73a99eb so that the function is only called when testing. Please test.

from vikunja.

jacquesh avatar jacquesh commented on May 24, 2024

Awesome, looks like it builds just fine with mage now :) Thanks!

from vikunja.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.