Skip to content

Commit

Permalink
CGO_ENABLED set to 0
Browse files Browse the repository at this point in the history
Signed-off-by: Dhruv-J <[email protected]>
  • Loading branch information
Dhruv-J committed Jul 16, 2023
1 parent be329a6 commit 8f85211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ clickhouse-server-multi-arch:
.PHONY: clickhouse-schema-management-plugin
clickhouse-schema-management-plugin:
@mkdir -p $(BINDIR)
GOOS=linux $(GO) build -o $(BINDIR) $(GOFLAGS) -ldflags '$(LDFLAGS)' antrea.io/theia/plugins/clickhouse-schema-management
GOOS=linux CGO_ENABLED=0 $(GO) build -o $(BINDIR) $(GOFLAGS) -ldflags '$(LDFLAGS)' antrea.io/theia/plugins/clickhouse-schema-management

# Theia currently supports two spark jobs, Throughput Anomaly Detection and Policy Recommendation.
# This Dockerfile helps create unified dockerfile for both the spark jobs.
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@ func (data *TestData) killProcessesAndCollectCovFiles(namespace, podName, contai
log.Infof("Copying coverage files from worker nodes kind-worker and kind-worker2")
cmd := "/bin/sh -c find / -name 'covmeta.*' -exec basename {} ';'"
rc, stdout, stderr, err := data.RunCommandOnNode("kind-worker", cmd)
var files []string;
var files []string
if err != nil || rc != 0 {
if !strings.Contains(err.Error(), "No such file or directory") {
return fmt.Errorf("error when running this find command (for coverage file) '%s' on Node kind-worker, stderr: <%v>, err: <%v>", cmd, stderr, err)
Expand Down

0 comments on commit 8f85211

Please sign in to comment.