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 | ||
M go.sum +0 -4
| @@ -1,5 +1,3 @@ | |||
| 1 | - | github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9 h1:1ltqoej5GtaWF8jaiA49HwsZD459jqm9YFz9ZtMFpQA= | |
| 2 | - | github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9/go.mod h1:7uhhqiBaR4CpN0k9rMjOtjpcfGd6DG2m04zQxKnWQ0I= | |
| 3 | 1 | github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= | |
| 4 | 2 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | |
| 5 | 3 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | |
| @@ -22,8 +20,6 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= | |||
| 22 | 20 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= | |
| 23 | 21 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= | |
| 24 | 22 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= | |
| 25 | - | github.com/mattn/go-sqlite3 v1.14.32 h1:JD12Ag3oLy1zQA+BNn74xRgaBbdhbNIDYvQUEuuErjs= | |
| 26 | - | github.com/mattn/go-sqlite3 v1.14.32/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= | |
| 27 | 23 | github.com/ncruces/go-sqlite3 v0.29.0 h1:1tsLiagCoqZEfcHDeKsNSv5jvrY/Iu393pAnw2wLNJU= | |
| 28 | 24 | github.com/ncruces/go-sqlite3 v0.29.0/go.mod h1:r1hSvYKPNJ+OlUA1O3r8o9LAawzPAlqeZiIdxTBBBJ0= | |
| 29 | 25 | github.com/ncruces/julianday v1.0.0 h1:fH0OKwa7NWvniGQtxdJRxAgkBMolni2BjDHaWTxqt7M= | |
| @@ -1,5 +1,3 @@ | |||||
| 1 | - | github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9 h1:1ltqoej5GtaWF8jaiA49HwsZD459jqm9YFz9ZtMFpQA= | |||
| 2 | - | github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9/go.mod h1:7uhhqiBaR4CpN0k9rMjOtjpcfGd6DG2m04zQxKnWQ0I= | |||
| 3 | github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= | 1 | github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= | ||
| 4 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | 2 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= | ||
| 5 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | 3 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= | ||
| @@ -22,8 +20,6 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= | |||||
| 22 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= | 20 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= | ||
| 23 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= | 21 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= | ||
| 24 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= | 22 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= | ||
| 25 | - | github.com/mattn/go-sqlite3 v1.14.32 h1:JD12Ag3oLy1zQA+BNn74xRgaBbdhbNIDYvQUEuuErjs= | |||
| 26 | - | github.com/mattn/go-sqlite3 v1.14.32/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= | |||
| 27 | github.com/ncruces/go-sqlite3 v0.29.0 h1:1tsLiagCoqZEfcHDeKsNSv5jvrY/Iu393pAnw2wLNJU= | 23 | github.com/ncruces/go-sqlite3 v0.29.0 h1:1tsLiagCoqZEfcHDeKsNSv5jvrY/Iu393pAnw2wLNJU= | ||
| 28 | github.com/ncruces/go-sqlite3 v0.29.0/go.mod h1:r1hSvYKPNJ+OlUA1O3r8o9LAawzPAlqeZiIdxTBBBJ0= | 24 | github.com/ncruces/go-sqlite3 v0.29.0/go.mod h1:r1hSvYKPNJ+OlUA1O3r8o9LAawzPAlqeZiIdxTBBBJ0= | ||
| 29 | github.com/ncruces/julianday v1.0.0 h1:fH0OKwa7NWvniGQtxdJRxAgkBMolni2BjDHaWTxqt7M= | 25 | github.com/ncruces/julianday v1.0.0 h1:fH0OKwa7NWvniGQtxdJRxAgkBMolni2BjDHaWTxqt7M= | ||