aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-08-24 02:24:21 -0700
committerGitHub <noreply@github.com>2022-08-24 02:24:21 -0700
commitf7e4359b597c9acdb0478c05c6f6ae6fbb56836b (patch)
tree790ea20f7c00b843d821825e027027d553e83cd7
parentf7aeb06544ef12d49f39010dcedcd34845deddff (diff)
downloadseaweedfs-f7e4359b597c9acdb0478c05c6f6ae6fbb56836b.tar.xz
seaweedfs-f7e4359b597c9acdb0478c05c6f6ae6fbb56836b.zip
Temporarily enable cgo
Temporarily enable cgo following findings from https://github.com/seaweedfs/seaweedfs/discussions/3152 by https://github.com/dyus Resolve build issue: ``` # github.com/mattn/go-ieproxy /go/pkg/mod/github.com/mattn/go-ieproxy@v0.0.3/ieproxy.go:36:9: undefined: getConf /go/pkg/mod/github.com/mattn/go-ieproxy@v0.0.3/ieproxy.go:41:9: undefined: reloadConf /go/pkg/mod/github.com/mattn/go-ieproxy@v0.0.3/ieproxy.go:48:2: undefined: overrideEnvWithStaticProxy /go/pkg/mod/github.com/mattn/go-ieproxy@v0.0.3/ieproxy.go:53:13: psc.findProxyForURL undefined (type *ProxyScriptConf has no field or method findProxyForURL, but does have FindProxyForURL) ```
-rw-r--r--.github/workflows/binaries_release2.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/binaries_release2.yml b/.github/workflows/binaries_release2.yml
index 8f1f29b82..eb41bfaca 100644
--- a/.github/workflows/binaries_release2.yml
+++ b/.github/workflows/binaries_release2.yml
@@ -36,7 +36,7 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
overwrite: true
- pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
+ pre_command: export CGO_ENABLED=1 && export GODEBUG=http2client=0
# build_flags: -tags 5BytesOffset # optional, default is
ldflags: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
# Where to run `go build .`
@@ -50,7 +50,7 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
overwrite: true
- pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0
+ pre_command: export CGO_ENABLED=1 && export GODEBUG=http2client=0
build_flags: -tags 5BytesOffset # optional, default is
ldflags: -extldflags -static -X github.com/seaweedfs/seaweedfs/weed/util.COMMIT=${{github.sha}}
# Where to run `go build .`