Skip to content

Commit

Permalink
Fix static-analysis pipeline (#15168)
Browse files Browse the repository at this point in the history
Due to weird make rules about environment variables the env var
CGO_ENABLED (which should be set to 1) wasn't picked up so defaulted to
0.
  • Loading branch information
jack-w-shaw committed Feb 8, 2023
1 parent 5abfa24 commit 125c19d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -627,5 +627,6 @@ STATIC_ANALYSIS_JOB ?=
.PHONY: static-analysis
static-analysis: dqlite-install-if-missing
## static-analysis: Check the go code using static-analysis
@export CGO_ENABLED=1
@cd tests && ./main.sh static_analysis ${STATIC_ANALYSIS_JOB}
@cd tests && CGO_ENABLED=1 \
CGO_LDFLAGS_ALLOW="(-Wl,-wrap,pthread_create)|(-Wl,-z,now)" \
./main.sh static_analysis ${STATIC_ANALYSIS_JOB}

0 comments on commit 125c19d

Please sign in to comment.