Skip to content

Commit

Permalink
[Fix/1702]Fix protobuf errors in binary built in docker build (#1706)
Browse files Browse the repository at this point in the history
Fix protobuf errors in binary built in terrascan
  • Loading branch information
nmoretenable authored Sep 18, 2024
1 parent cfea5fd commit bd6d393
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apk update && apk add --no-cache --update build-base git
COPY . .

# build binary
RUN CGO_ENABLED=${CGO_ENABLED_VAL} go build -v -ldflags "-w -s" -o /go/bin/terrascan ./cmd/terrascan
RUN CGO_ENABLED=${CGO_ENABLED_VAL} go build -v -ldflags "-w -s -X google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=ignore" -o /go/bin/terrascan ./cmd/terrascan


# -------- prod stage -------- #
Expand Down
2 changes: 1 addition & 1 deletion pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package version
import "fmt"

// Terrascan The Terrascan version
const Terrascan = "1.19.8"
const Terrascan = "1.19.9"

// Get returns the terrascan version
func Get() string {
Expand Down

0 comments on commit bd6d393

Please sign in to comment.