aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-04-16 01:36:20 +0700
committerShulhan <ms@kilabit.info>2022-04-16 18:32:36 +0700
commit8947cc8b6a9751b3cae3d4d22fdf3ac154f77dfd (patch)
tree7251c221bc3d4a324a6bdaca7a215d75bbb310ca /Makefile
parentdfc441b32458d204dae6498867f08e7da483c815 (diff)
downloadrescached-8947cc8b6a9751b3cae3d4d22fdf3ac154f77dfd.tar.xz
all: apply suggestions from linter
List of changes, * Remove unused constants keyIsEnabled, keyIsSystem, and keyLastUpdated. * Use the method String on instance of Duration instead of fmt.Sprintf. * Replace any usage of io/ioutil package with its replacement. * Check for error from calling Environment.init and Zone.Add. * Prefix all returned error on hostsBlock.update method. * Add "lint" task as part of default target, build.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5f6141f..eed784e 100644
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,7 @@ DIR_BIN=/usr/bin
DIR_MAN=/usr/share/man
DIR_RESCACHED=/usr/share/rescached
-build: test memfs_generate.go
+build: lint test memfs_generate.go
mkdir -p _bin/$(GOOS)_$(GOARCH)
CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) GOARCH=$(GOARCH) \
go build $(DEBUG) -o _bin/$(GOOS)_$(GOARCH)/ ./cmd/...
@@ -52,7 +52,7 @@ test.prof:
-memprofile $(MEM_PROF) ./...
lint:
- -golangci-lint run --enable-all ./...
+ -golangci-lint run ./...
memfs_generate.go: .FORCE
go run ./cmd/rescached embed