Packaging werf for openSUSE: build fails with "pkg/container_backend/instruction/run.go:39:22: undefined: instructions.GetSecurity" #5875
Replies: 1 comment 1 reply
-
@johanneskastl Hello! Thanks for your interest in werf. This error occurs because we need to pass some special go-build-tags to enable some library functions used by the werf (dfrunsecurity build tag in this concrete case). But there are more build tags and all of them are specified in the project taskfile (https://taskfile.dev/, sort of makefile): https://github.com/werf/werf/blob/main/Taskfile.dist.yaml#L22. Important thing to know is that build for linux should enable CGO and list of required go-build-tags, which is:
The build command will be:
The most preferred way to build werf as we build it is to use task |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to package werf for openSUSE before playing around with it. But the build fails with the following error:
I could workaround the missing dependencies for compilation, but I am not familiar enough with golang to get this solved myself. Looks to me like I have a dependency that is too old, but which could this be?
Any hints are highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions