From eb8ba0eb748db05cc173be1c5fb203620c517ee0 Mon Sep 17 00:00:00 2001 From: db123-test Date: Thu, 7 May 2026 17:52:23 +0330 Subject: [PATCH] ci: replace manual sqlite driver download with go mod tidy The workflow previously ran `go get auth-proxy/src` to download the sqlite driver separately before downloading dependencies. This step has been removed and replaced with `go mod tidy`, which is the idiomatic Go approach for managing dependencies. It ensures go.mod is properly formatted and removes unused dependencies, eliminating the need for manual driver installation steps. --- .github/workflows/ci-cd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 1ff2297..c084662 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -19,12 +19,12 @@ jobs: - name: Set go proxy mirror run: /usr/local/go/bin/go env -w GOPROXY=https://go.iranserver.com/repository/go/ && /usr/local/go/bin/go env -w GOSUMDB=off - - name: Download sqlite go driver - run: /usr/local/go/bin/go get auth-proxy/src - - name: Download dependencies run: /usr/local/go/bin/go mod download + - name: Tidy modules + run: /usr/local/go/bin/go mod tidy + - name: Check formatting run: | if [ "$(/usr/local/go/bin/gofmt -l $(find . -name '*.go' -not -path './vendor/*'))" ]; then