fix(build): Define linting flags in one place

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2025-01-04 14:05:10 +01:00
parent 4a8f799b37
commit 473ef3bec1
3 changed files with 4 additions and 2 deletions

View File

@@ -146,7 +146,7 @@ jobs:
- name: Lint
if: ${{ matrix.host_os != 'windows' }}
run: make lint LINT_OPTS=--timeout=15m
run: make lint
- name: Run tests
if: ${{ matrix.target_arch == matrix.host_arch && matrix.target_os == matrix.host_os && matrix.host_os != 'windows' }}

View File

@@ -10,7 +10,7 @@ project_name: cunicu
before:
hooks:
- make prepare LINT_OPTS=--timeout=15m
- make prepare
checksum:
name_template: "checksums.txt"

View File

@@ -5,6 +5,8 @@ PKG = $(shell grep module go.mod | cut -f2 -d" ")
export CGO_ENABLED = 0
LINT_OPTS ?= --timeout=15m
LDFLAGS = -X cunicu.li/cunicu/pkg/buildinfo.Version=$(shell git describe --tags --dirty || echo unknown) \
-X cunicu.li/cunicu/pkg/buildinfo.Tag=$(shell git describe --tags) \
-X cunicu.li/cunicu/pkg/buildinfo.Commit=$(shell git rev-parse HEAD) \