Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] I want to compile the code for local deployment myself, but there is a serious error message #1847

Closed
fengyikang88 opened this issue May 26, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@fengyikang88
Copy link

fengyikang88 commented May 26, 2024

go run main.go
common/message.go:4:2: no required module provides package github.com/IceWhaleTech/CasaOS/codegen/message_bus; to add it:
go get github.com/IceWhaleTech/CasaOS/codegen/message_bus
route/v2.go:13:2: no required module provides package github.com/IceWhaleTech/CasaOS/codegen; to add it:
go get github.com/IceWhaleTech/CasaOS/codegen

go get github.com/IceWhaleTech/CasaOS/codegen
go: github.com/IceWhaleTech/CasaOS/codegen: no matching versions for query "upgrade"

How to solve this problem? I have been unable to find this package???

@fengyikang88 fengyikang88 added the bug Something isn't working label May 26, 2024
@hotbrainy
Copy link

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

@Ns2Kracy
Copy link
Member

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

@fengyikang88
Copy link
Author

需要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??

@Ns2Kracy
Copy link
Member

需要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.

@fengyikang88
Copy link
Author

需要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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants