github.com/pingcap/ticdc@v0.0.0-20220526033649-485a10ef2652/scripts/fix_lib_zstd.sh (about)

     1  #!/bin/bash
     2  
     3  GOPATH=$(go env GOPATH)
     4  module="github.com/apache/pulsar-client-go@v0.1.1"
     5  
     6  GO111MODULE=on go mod download ${module}
     7  # In CI environment, the gopath contains multiple dirs, choose the first one
     8  cd $(echo ${GOPATH}|awk -F':' '{print $1}')/pkg/mod/${module}/pulsar/internal/compression
     9  sudo rm zstd_cgo.go
    10  sudo sed -i '/build !cgo/d' zstd.go