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.
This commit is contained in:
db123-test
2026-05-07 17:52:23 +03:30
parent 31afa58ace
commit eb8ba0eb74

View File

@@ -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