chore(build): simplify local cache config and update dependencies
- commit
- d0eaf06fd3b42533080618b84454f2703c02617c
- author
- bamen · · 2025-09-20 05:21 UTC
- parent
- 7576372
- signature
- unsigned
3 files · +7 -11
M Makefile +6 -5
| @@ -17,10 +17,11 @@ DIST_DIR=dist | |||
| 17 | 17 | NPROCS?=$(shell nproc 2>/dev/null || echo 1) | |
| 18 | 18 | ||
| 19 | 19 | # Local caches to avoid $HOME permission issues (override via .env.local) | |
| 20 | - | GOMODCACHE?=$(CURDIR)/tmp/go-mod | |
| 21 | - | GOCACHE?=$(CURDIR)/tmp/go-cache | |
| 22 | - | GOTMPDIR?=$(CURDIR)/tmp | |
| 23 | - | GOENV=GOMODCACHE=$(GOMODCACHE) GOCACHE=$(GOCACHE) GOTMPDIR=$(GOTMPDIR) | |
| 20 | + | # GOMODCACHE?=$(CURDIR)/tmp/go-mod | |
| 21 | + | # GOCACHE?=$(CURDIR)/tmp/go-cache | |
| 22 | + | # GOTMPDIR?=$(CURDIR)/tmp | |
| 23 | + | # GOENV=GOMODCACHE=$(GOMODCACHE) GOCACHE=$(GOCACHE) GOTMPDIR=$(GOTMPDIR) | |
| 24 | + | GOENV= | |
| 24 | 25 | ||
| 25 | 26 | # Version information from git | |
| 26 | 27 | VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "v0.0.0-dev") | |
| @@ -120,7 +121,7 @@ clean: ## Clean build artifacts | |||
| 120 | 121 | go clean -cache | |
| 121 | 122 | go clean -testcache | |
| 122 | 123 | ||
| 123 | - | # Project initialization | |
| 124 | + | # Project initialization | |
| 124 | 125 | init: install-tools ## Initialize project dependencies and tools | |
| 125 | 126 | @echo "Project dependencies and tools installed!" | |
| 126 | 127 | @echo "Ready for development. Run 'make help' for available commands." | |
| @@ -17,10 +17,11 @@ DIST_DIR=dist | |||||
| 17 | NPROCS?=$(shell nproc 2>/dev/null || echo 1) | 17 | NPROCS?=$(shell nproc 2>/dev/null || echo 1) | ||
| 18 | 18 | ||||
| 19 | # Local caches to avoid $HOME permission issues (override via .env.local) | 19 | # Local caches to avoid $HOME permission issues (override via .env.local) | ||
| 20 | - | GOMODCACHE?=$(CURDIR)/tmp/go-mod | 20 | + | # GOMODCACHE?=$(CURDIR)/tmp/go-mod |
| 21 | - | GOCACHE?=$(CURDIR)/tmp/go-cache | 21 | + | # GOCACHE?=$(CURDIR)/tmp/go-cache |
| 22 | - | GOTMPDIR?=$(CURDIR)/tmp | 22 | + | # GOTMPDIR?=$(CURDIR)/tmp |
| 23 | - | GOENV=GOMODCACHE=$(GOMODCACHE) GOCACHE=$(GOCACHE) GOTMPDIR=$(GOTMPDIR) | 23 | + | # GOENV=GOMODCACHE=$(GOMODCACHE) GOCACHE=$(GOCACHE) GOTMPDIR=$(GOTMPDIR) |
| 24 | + | GOENV= | |||
| 24 | 25 | ||||
| 25 | # Version information from git | 26 | # Version information from git | ||
| 26 | VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "v0.0.0-dev") | 27 | VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "v0.0.0-dev") | ||
| @@ -120,7 +121,7 @@ clean: ## Clean build artifacts | |||||
| 120 | go clean -cache | 121 | go clean -cache | ||
| 121 | go clean -testcache | 122 | go clean -testcache | ||
| 122 | 123 | ||||
| 123 | - | # Project initialization | 124 | + | # Project initialization |
| 124 | init: install-tools ## Initialize project dependencies and tools | 125 | init: install-tools ## Initialize project dependencies and tools | ||
| 125 | @echo "Project dependencies and tools installed!" | 126 | @echo "Project dependencies and tools installed!" | ||
| 126 | @echo "Ready for development. Run 'make help' for available commands." | 127 | @echo "Ready for development. Run 'make help' for available commands." | ||
M go.mod +1 -2
| @@ -6,6 +6,7 @@ require ( | |||
| 6 | 6 | github.com/fsnotify/fsnotify v1.9.0 | |
| 7 | 7 | github.com/golang/mock v1.6.0 | |
| 8 | 8 | github.com/ncruces/go-sqlite3 v0.29.0 | |
| 9 | + | github.com/sergeymakinen/go-ico v1.0.0-beta.0 | |
| 9 | 10 | github.com/spf13/cobra v1.10.1 | |
| 10 | 11 | github.com/spf13/viper v1.21.0 | |
| 11 | 12 | ) | |
| @@ -14,13 +15,11 @@ require ( | |||
| 14 | 15 | github.com/go-viper/mapstructure/v2 v2.4.0 // indirect | |
| 15 | 16 | github.com/google/go-cmp v0.7.0 // indirect | |
| 16 | 17 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | |
| 17 | - | github.com/mattn/go-sqlite3 v1.14.32 // indirect | |
| 18 | 18 | github.com/ncruces/julianday v1.0.0 // indirect | |
| 19 | 19 | github.com/pelletier/go-toml/v2 v2.2.4 // indirect | |
| 20 | 20 | github.com/rogpeppe/go-internal v1.12.0 // indirect | |
| 21 | 21 | github.com/sagikazarmark/locafero v0.11.0 // indirect | |
| 22 | 22 | github.com/sergeymakinen/go-bmp v1.0.0 // indirect | |
| 23 | - | github.com/sergeymakinen/go-ico v1.0.0-beta.0 // indirect | |
| 24 | 23 | github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect | |
| 25 | 24 | github.com/spf13/afero v1.15.0 // indirect | |
| 26 | 25 | github.com/spf13/cast v1.10.0 // indirect | |
| @@ -6,6 +6,7 @@ require ( | |||||
| 6 | github.com/fsnotify/fsnotify v1.9.0 | 6 | github.com/fsnotify/fsnotify v1.9.0 | ||
| 7 | github.com/golang/mock v1.6.0 | 7 | github.com/golang/mock v1.6.0 | ||
| 8 | github.com/ncruces/go-sqlite3 v0.29.0 | 8 | github.com/ncruces/go-sqlite3 v0.29.0 | ||
| 9 | + | github.com/sergeymakinen/go-ico v1.0.0-beta.0 | |||
| 9 | github.com/spf13/cobra v1.10.1 | 10 | github.com/spf13/cobra v1.10.1 | ||
| 10 | github.com/spf13/viper v1.21.0 | 11 | github.com/spf13/viper v1.21.0 | ||
| 11 | ) | 12 | ) | ||
| @@ -14,13 +15,11 @@ require ( | |||||
| 14 | github.com/go-viper/mapstructure/v2 v2.4.0 // indirect | 15 | github.com/go-viper/mapstructure/v2 v2.4.0 // indirect | ||
| 15 | github.com/google/go-cmp v0.7.0 // indirect | 16 | github.com/google/go-cmp v0.7.0 // indirect | ||
| 16 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | 17 | github.com/inconshreveable/mousetrap v1.1.0 // indirect | ||
| 17 | - | github.com/mattn/go-sqlite3 v1.14.32 // indirect | |||
| 18 | github.com/ncruces/julianday v1.0.0 // indirect | 18 | github.com/ncruces/julianday v1.0.0 // indirect | ||
| 19 | github.com/pelletier/go-toml/v2 v2.2.4 // indirect | 19 | github.com/pelletier/go-toml/v2 v2.2.4 // indirect | ||
| 20 | github.com/rogpeppe/go-internal v1.12.0 // indirect | 20 | github.com/rogpeppe/go-internal v1.12.0 // indirect | ||
| 21 | github.com/sagikazarmark/locafero v0.11.0 // indirect | 21 | github.com/sagikazarmark/locafero v0.11.0 // indirect | ||
| 22 | github.com/sergeymakinen/go-bmp v1.0.0 // indirect | 22 | github.com/sergeymakinen/go-bmp v1.0.0 // indirect | ||
| 23 | - | github.com/sergeymakinen/go-ico v1.0.0-beta.0 // indirect | |||
| 24 | github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect | 23 | github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect | ||
| 25 | github.com/spf13/afero v1.15.0 // indirect | 24 | github.com/spf13/afero v1.15.0 // indirect | ||
| 26 | github.com/spf13/cast v1.10.0 // indirect | 25 | github.com/spf13/cast v1.10.0 // indirect | ||