Closed onny closed 1 year ago
Hi @onny ,
I've fixed the go.mod file on branch v1.5.0. It was not failing on Debian with Go 1.19, but anyway, those indirect deps weren't on master.
Thank you.
Thank you for trying to fix the issue. When trying to apply your patch I still get following error
opensnitch> Building subPackage .
opensnitch> go: inconsistent vendoring in /build/source/daemon:
opensnitch> github.com/golang/protobuf@v1.5.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
opensnitch> To ignore the vendor directory, use -mod=readonly or -mod=mod.
opensnitch> To sync the vendor directory, run:
opensnitch> go mod vendor
I don't have any of these issues on Debian (go 1.19.3). protobuf@v1.5.0
was added by go mod tidy
Why don't you run go mod vendor
? That would aligned go.mod versions with vendor/modules.txt
if vendor/modules.txt is outdated run go mod vendor to sync needed versions.
by the way, thank you for packaging for nix! :heart:
Still encountering this issue while trying to package for NixOS. Here's what I have to do: Run in the OpenSnitch daemon dir:
go mod tidy
go mod vendor
Override both files in the sources and update vendorHash
in the nix package derivation.
Describe the bug
Building OpenSnitch with Go > 1.17 fails
After applying following patch, it builds again
Include the following information:
To Reproduce
Post error logs: