Commit 5aab2392 authored by Alex Lov's avatar Alex Lov
Browse files

terrascan: fix build parameters

Pass custom ldflag to fix issue related to protobuf
See https://github.com/tenable/terrascan/issues/1702
parent e93e4f99
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;