diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml index d19c3b2d5..6ae22b8b4 100644 --- a/.github/workflows/ci-backend.yml +++ b/.github/workflows/ci-backend.yml @@ -46,7 +46,6 @@ jobs: $GITHUB_WORKSPACE/golangci-lint --config ${GITHUB_WORKSPACE}/backend/.golangci.yml run --out-format=github-actions ./... working-directory: backend/app env: - GOFLAGS: "-mod=vendor" TZ: "America/Chicago" - name: test and lint examples diff --git a/Dockerfile b/Dockerfile index aaf8cc65e..176129584 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,8 +57,6 @@ ARG BACKEND_TEST_TIMEOUT ADD backend /build/backend WORKDIR /build/backend -ENV GOFLAGS="-mod=vendor" - # install gcc in order to be able to go test package with -race RUN apk --no-cache add gcc libc-dev diff --git a/Dockerfile.artifacts b/Dockerfile.artifacts index fe0f78c0d..7a9d85d3b 100644 --- a/Dockerfile.artifacts +++ b/Dockerfile.artifacts @@ -43,7 +43,6 @@ RUN \ RUN \ version=$("/script/version.sh") && echo "version=${version}" && \ - export GOFLAGS="-mod=vendor" && \ GOOS=linux GOARCH=amd64 go build -o remark42.linux-amd64 -ldflags "-X main.revision=${version} -s -w" ./app && \ GOOS=linux GOARCH=386 go build -o remark42.linux-386 -ldflags "-X main.revision=${version} -s -w" ./app && \ GOOS=linux GOARCH=arm go build -o remark42.linux-arm -ldflags "-X main.revision=${version} -s -w" ./app && \ diff --git a/Makefile b/Makefile index 217fe0a09..4680a6119 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ release: docker rm -f remark42.bin race_test: - cd backend/app && go test -race -mod=vendor -timeout=60s -count 1 ./... + cd backend/app && go test -race -timeout=60s -count 1 ./... backend: docker-compose -f compose-dev-backend.yml build diff --git a/backend/app/store/engine/engine.go b/backend/app/store/engine/engine.go index 5e8555ff4..df8c30c32 100644 --- a/backend/app/store/engine/engine.go +++ b/backend/app/store/engine/engine.go @@ -11,7 +11,7 @@ import ( "github.com/umputun/remark42/backend/app/store" ) -// NOTE: mockery works from linked to go-path and with GOFLAGS='-mod=vendor' go generate +// NOTE: mockery works from linked to go-path and with go generate //go:generate sh -c "mockery -inpkg -name Interface -print > /tmp/engine-mock.tmp && mv /tmp/engine-mock.tmp engine_mock.go" // Interface defines methods provided by low-level storage engine