this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: set CGO_ENABLED=0 for tests, remove unused CGO driver

The test target now matches the build target by setting
CGO_ENABLED=0. Removed gorm.io/driver/sqlite (CGO-based)
from go.mod since all code now uses glebarez/sqlite (pure Go).

+3 -9
+1 -1
Makefile
··· 32 32 33 33 34 34 test: ## Run unit tests 35 - go test -v ./... 35 + CGO_ENABLED=0 go test -v ./... 36 36 37 37 test-mysql: ## Run MySQL-specific tests (requires MySQL) 38 38 go test -v -tags mysql ./internal/data/
+2 -4
go.mod
··· 5 5 require ( 6 6 github.com/doyensec/safeurl v0.2.2 7 7 github.com/glebarez/sqlite v1.11.0 8 + github.com/robfig/cron/v3 v3.0.1 8 9 github.com/spf13/viper v1.21.0 9 10 golang.org/x/net v0.48.0 11 + golang.org/x/time v0.14.0 10 12 gorm.io/driver/mysql v1.6.0 11 - gorm.io/driver/sqlite v1.6.0 12 13 gorm.io/gorm v1.31.1 13 14 ) 14 15 ··· 25 26 github.com/jinzhu/inflection v1.0.0 // indirect 26 27 github.com/jinzhu/now v1.1.5 // indirect 27 28 github.com/mattn/go-isatty v0.0.17 // indirect 28 - github.com/mattn/go-sqlite3 v1.14.22 // indirect 29 29 github.com/pelletier/go-toml/v2 v2.2.4 // indirect 30 30 github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect 31 31 github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect 32 - github.com/robfig/cron/v3 v3.0.1 // indirect 33 32 github.com/rogpeppe/go-internal v1.13.1 // indirect 34 33 github.com/sagikazarmark/locafero v0.11.0 // indirect 35 34 github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect ··· 40 39 go.yaml.in/yaml/v3 v3.0.4 // indirect 41 40 golang.org/x/sys v0.39.0 // indirect 42 41 golang.org/x/text v0.32.0 // indirect 43 - golang.org/x/time v0.14.0 // indirect 44 42 gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect 45 43 modernc.org/libc v1.22.5 // indirect 46 44 modernc.org/mathutil v1.5.0 // indirect
-4
go.sum
··· 37 37 github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= 38 38 github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng= 39 39 github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= 40 - github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= 41 - github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= 42 40 github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= 43 41 github.com/pelletier/go-toml/v2 v2.2.4/go.mod h1:2gIqNv+qfxSVS7cM2xJQKtLSTLUE9V8t9Stt+h56mCY= 44 42 github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= ··· 84 82 gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 85 83 gorm.io/driver/mysql v1.6.0 h1:eNbLmNTpPpTOVZi8MMxCi2aaIm0ZpInbORNXDwyLGvg= 86 84 gorm.io/driver/mysql v1.6.0/go.mod h1:D/oCC2GWK3M/dqoLxnOlaNKmXz8WNTfcS9y5ovaSqKo= 87 - gorm.io/driver/sqlite v1.6.0 h1:WHRRrIiulaPiPFmDcod6prc4l2VGVWHz80KspNsxSfQ= 88 - gorm.io/driver/sqlite v1.6.0/go.mod h1:AO9V1qIQddBESngQUKWL9yoH93HIeA1X6V633rBwyT8= 89 85 gorm.io/gorm v1.31.1 h1:7CA8FTFz/gRfgqgpeKIBcervUn3xSyPUmr6B2WXJ7kg= 90 86 gorm.io/gorm v1.31.1/go.mod h1:XyQVbO2k6YkOis7C2437jSit3SsDK72s7n7rsSHd+Gs= 91 87 modernc.org/libc v1.22.5 h1:91BNch/e5B0uPbJFgqbxXuOnxBQjlS//icfQEGmvyjE=