terrascan: fix build parameters

Pass custom ldflag to fix issue related to protobuf
See https://github.com/tenable/terrascan/issues/1702
This commit is contained in:
Alex Lov
2025-03-21 18:03:36 +03:00
parent e93e4f99cb
commit 5aab2392db
+5
View File
@@ -17,6 +17,11 @@ buildGoModule rec {
vendorHash = "sha256-yQien8v7Ru+JWLou9QfyKZAR2ENMHO2aF2vzuWyQcjY=";
ldflags = [
# Fix protobuf errors https://github.com/tenable/terrascan/pull/1703/files
"-X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=ignore"
];
# Tests want to download a vulnerable Terraform project
doCheck = false;