Skip to content

Commit

Permalink
set CGO_ENABLED=0
Browse files Browse the repository at this point in the history
  • Loading branch information
childe committed Mar 22, 2023
1 parent 082408d commit 2a51a36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ all: check
@echo $(hash)
mkdir -p build/

GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$(hash)" -o build/gohangout-windows-x64-$(tag).exe
GOOS=windows GOARCH=386 go build -ldflags "-X main.version=$(hash)" -o build/gohangout-windows-386-$(tag).exe
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(hash)" -o build/gohangout-linux-x64-$(tag)
GOOS=linux GOARCH=386 go build -ldflags "-X main.version=$(hash)" -o build/gohangout-linux-386-$(tag)
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=$(hash)" -o build/gohangout-darwin-x64-$(tag)
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version=$(hash)" -o build/gohangout-windows-x64-$(tag).exe
GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags "-X main.version=$(hash)" -o build/gohangout-windows-386-$(tag).exe
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version=$(hash)" -o build/gohangout-linux-x64-$(tag)
GOOS=linux GOARCH=386 CGO_ENABLED=0 go build -ldflags "-X main.version=$(hash)" -o build/gohangout-linux-386-$(tag)
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.version=$(hash)" -o build/gohangout-darwin-x64-$(tag)

clean:
rm -rf build/*
Expand Down
2 changes: 1 addition & 1 deletion output/clickhouse_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,8 @@ func newClickhouseOutput(config map[interface{}]interface{}) topology.Output {

p.bulkChan = make(chan []map[string]interface{}, concurrent)
for i := 0; i < concurrent; i++ {
p.wg.Add(1)
go func() {
p.wg.Add(1)
for {
select {
case events := <-p.bulkChan:
Expand Down

0 comments on commit 2a51a36

Please sign in to comment.