From 8e1a9c3ee07f192f49ac9346b9718afc7f2d6e04 Mon Sep 17 00:00:00 2001 From: TangRufus Date: Thu, 22 Oct 2026 00:18:22 +0100 Subject: [PATCH] `go fix`: Accept build tags --- .github/workflows/lint-go.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint-go.yml b/.github/workflows/lint-go.yml index 11cbbd9..ffc924f 100644 --- a/.github/workflows/lint-go.yml +++ b/.github/workflows/lint-go.yml @@ -8,6 +8,11 @@ on: default: go.mod type: string + tags: + description: 'Comma-separated list of build tags.' + default: '' + type: string + go-experiment: default: "" type: string @@ -60,8 +65,9 @@ jobs: with: go-version-file: ${{ inputs.go-version-file }} - - run: go fix -diff ./... + - run: go fix -diff -tags="${TAGS}" ./... env: + TAGS: ${{ inputs.tags }} GOEXPERIMENT: ${{ inputs.go-experiment }} golangci-lint: