mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 21:52:43 +08:00
Chore: Use golanglint-ci-includes script in Makefile (#91742)
This commit is contained in:
11
scripts/go-workspace/golangci-lint-includes.sh
Executable file
11
scripts/go-workspace/golangci-lint-includes.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
|
||||
INCLUDES=$(go run scripts/go-workspace/main.go list-submodules --path "${REPO_ROOT}/go.work" --delimiter '/... ' --skip golangci-lint)
|
||||
|
||||
# ./pkg/... is manually added to cover the root package without including scripts and devenv
|
||||
printf './pkg/... %s' "${INCLUDES}"
|
@ -1,9 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
REPO_ROOT=$(dirname "${BASH_SOURCE[0]}")/../..
|
||||
|
||||
go run scripts/go-workspace/main.go list-submodules --path "${REPO_ROOT}/go.work" --delimiter '/... ' --skip golangci-lint
|
Reference in New Issue
Block a user