Code Monkey home page Code Monkey logo

Comments (5)

Ns2Kracy avatar Ns2Kracy commented on June 26, 2024 1

Need go generate to generate the codegen. Or goreleaser is recommanded to develop, like goreleaser build --clean --snapshot --id casaos-amd64.

from casaos.

hotbrainy avatar hotbrainy commented on June 26, 2024

I am also faced on this problem. I think, codegen folder is missed by gitignore.
anybody to take care about this?
thank you.

from casaos.

fengyikang88 avatar fengyikang88 commented on June 26, 2024

需要go generate生成codegen。或者建议用goreleaser来开发,如goreleaser build --clean --snapshot --id casaos-amd64

Need go generate to generate the codegen. Or goreleaser is recommanded to develop, like goreleaser build --clean --snapshot --id casaos-amd64.
But I am currently using the M1 version of MAC, which keeps prompting me:

github.com/IceWhaleTech/CasaOS/service

service/connections.go:65:8: undefined: unix.MS_NOATIME
service/connections.go:65:24: undefined: unix.MS_NODEV
service/connections.go:65:38: undefined: unix.MS_NOSUID
service/connections.go:66:3: too many arguments in call to unix.Mount
have (string, string, string, unknown type, string)
want (string, string, int, unsafe.Pointer)
service/connections.go:73:15: undefined: mount.Unmount
Can only be recompiled and developed on Linux systems on the X86 platform??

from casaos.

Ns2Kracy avatar Ns2Kracy commented on June 26, 2024

需要go generate生成codegen。或者建议用goreleaser来开发,如goreleaser build --clean --snapshot --id casaos-amd64

Need go generate to generate the codegen. Or goreleaser is recommanded to develop, like goreleaser build --clean --snapshot --id casaos-amd64.
But I am currently using the M1 version of MAC, which keeps prompting me:

github.com/IceWhaleTech/CasaOS/service

service/connections.go:65:8: undefined: unix.MS_NOATIME service/connections.go:65:24: undefined: unix.MS_NODEV service/connections.go:65:38: undefined: unix.MS_NOSUID service/connections.go:66:3: too many arguments in call to unix.Mount have (string, string, string, unknown type, string) want (string, string, int, unsafe.Pointer) service/connections.go:73:15: undefined: mount.Unmount Can only be recompiled and developed on Linux systems on the X86 platform??

You can check the .goreleaser.yaml file, and choose the id you need like casaos-amd64 or casaos-arm64.

from casaos.

fengyikang88 avatar fengyikang88 commented on June 26, 2024

需要go generate生成codegen。或者建议用goreleaser来开发,如goreleaser build --clean --snapshot --id casaos-amd64

Need go generate to generate the codegen. Or goreleaser is recommanded to develop, like goreleaser build --clean --snapshot --id casaos-amd64.
But I am currently using the M1 version of MAC, which keeps prompting me:

github.com/IceWhaleTech/CasaOS/service

service/connections.go:65:8: undefined: unix.MS_NOATIME service/connections.go:65:24: undefined: unix.MS_NODEV service/connections.go:65:38: undefined: unix.MS_NOSUID service/connections.go:66:3: too many arguments in call to unix.Mount have (string, string, string, unknown type, string) want (string, string, int, unsafe.Pointer) service/connections.go:73:15: undefined: mount.Unmount Can only be recompiled and developed on Linux systems on the X86 platform??

You can check the .goreleaser.yaml file, and choose the id you need like casaos-amd64 or casaos-arm64.

Solved. Thank you!

from casaos.

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.