From aa94b036de51f9fd4b9ad4431023e3a4ac82af77 Mon Sep 17 00:00:00 2001 From: samanhappy Date: Mon, 12 Aug 2024 19:20:47 +0800 Subject: [PATCH] fix gcflags --- .github/workflows/test.yaml | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5a54c0e9..6f763695 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -39,7 +39,7 @@ jobs: - name: Go Get dependencies run: go get -v -t -d ./... - name: Go Test - run: make test TEST_FLAGS="-coverprofile=coverage.txt -covermode=atomic -gcflags=all=-l" + run: make test TEST_FLAGS="-coverprofile=coverage.txt -covermode=atomic" - name: Upload coverage to Codecov uses: codecov/codecov-action@v4.5.0 with: diff --git a/Makefile b/Makefile index a70cc4af..c3e57ffa 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,7 @@ ${TARGET}: ${SOURCE} build: all test: - go test -gcflags=-l -cover -race ${TEST_FLAGS} -v ./... + go test -gcflags=all=-l -cover -race ${TEST_FLAGS} -v ./... docker: sudo DOCKER_BUILDKIT=1 docker build -t megaease/easeprobe -f ${MKFILE_DIR}/resources/Dockerfile ${MKFILE_DIR}