diff --git a/Makefile b/Makefile index 2752d791..1cea21a2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ GOPATH_DIR=`go env GOPATH` -RELEASE=v0.3.13 +RELEASE=v0.3.15 BUILD_COMMIT=`git rev-parse HEAD` build: @@ -8,7 +8,10 @@ build: build-release: mkdir -p bin - go build -o bin/ruleguard -ldflags "-X 'github.com/quasilyte/go-ruleguard/analyzer.Version=$(RELEASE)'" ./cmd/ruleguard + go build -o bin/ruleguard \ + -trimpath \ + -ldflags "-X 'github.com/quasilyte/go-ruleguard/analyzer.Version=$(RELEASE)'" \ + ./cmd/ruleguard test: go test -count 3 -coverpkg=./... -coverprofile=coverage.txt -covermode=atomic -race ./... diff --git a/README.md b/README.md index 52c443dd..6c5a8358 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ It can also be easily embedded into other static analyzers. [go-critic](https:// ## Quick start -It's advised that you get a binary from the [latest release](https://github.com/quasilyte/go-ruleguard/releases/tag/v0.3.13) {[linux/amd64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.13/ruleguard-linux-amd64.zip), [linux/arm64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.13/ruleguard-linux-arm64.zip), [darwin/amd64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.13/ruleguard-darwin-amd64.zip), [darwin/arm64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.13/ruleguard-darwin-arm64.zip), [windows/amd64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.13/ruleguard-windows-amd64.zip), [windows/arm64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.13/ruleguard-windows-arm64.zip)}. +It's advised that you get a binary from the [latest release](https://github.com/quasilyte/go-ruleguard/releases/tag/v0.3.15) {[linux/amd64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.15/ruleguard-linux-amd64.zip), [linux/arm64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.15/ruleguard-linux-arm64.zip), [darwin/amd64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.15/ruleguard-darwin-amd64.zip), [darwin/arm64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.15/ruleguard-darwin-arm64.zip), [windows/amd64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.15/ruleguard-windows-amd64.zip), [windows/arm64](https://github.com/quasilyte/go-ruleguard/releases/download/v0.3.15/ruleguard-windows-arm64.zip)}. If you want to install the ruleguard from source, it's as simple as: