From ca85b665115cebc062ebfd6d081101bcc9e757b3 Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 16 May 2022 00:58:11 -0700 Subject: [PATCH] fix build --- .github/workflows/binaries_release4.yml | 4 ++-- docker/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/binaries_release4.yml b/.github/workflows/binaries_release4.yml index b246f1f98..7621c32e2 100644 --- a/.github/workflows/binaries_release4.yml +++ b/.github/workflows/binaries_release4.yml @@ -36,7 +36,7 @@ jobs: goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} overwrite: true - build_flags: -tags elastic,ydb,gocdk,hdfs,rocksdb + build_flags: -tags elastic,ydb,gocdk,hdfs pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0 # build_flags: -tags 5BytesOffset # optional, default is ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}} @@ -52,7 +52,7 @@ jobs: goarch: ${{ matrix.goarch }} overwrite: true pre_command: export CGO_ENABLED=0 && export GODEBUG=http2client=0 - build_flags: -tags 5BytesOffset,elastic,ydb,gocdk,hdfs,rocksdb + build_flags: -tags 5BytesOffset,elastic,ydb,gocdk,hdfs ldflags: -extldflags -static -X github.com/chrislusf/seaweedfs/weed/util.COMMIT=${{github.sha}} # Where to run `go build .` project_path: weed diff --git a/docker/Makefile b/docker/Makefile index c023fc1ae..dbc82fde4 100644 --- a/docker/Makefile +++ b/docker/Makefile @@ -13,7 +13,7 @@ build: binary docker build --no-cache -t chrislusf/seaweedfs:local -f Dockerfile.local . rm ./weed -go_build: # make go_build tags=elastic,ydb,gocdk,hdfs,rocksdb,5BytesOffset +go_build: # make go_build tags=elastic,ydb,gocdk,hdfs,5BytesOffset docker build --build-arg TAGS=$(tags) --no-cache -t chrislusf/seaweedfs:go_build -f Dockerfile.go_build . go_build_large_disk: