Remove GO111MODULE and update lint/test commands. #1

Merged
pztrn merged 3 commits from some-fixes into master 2025-04-26 14:25:26 +05:00
5 changed files with 19 additions and 19 deletions

View File

@ -1,12 +1,16 @@
- id: go-test-mod-cover - id: go-test-cover
name: 'go-test-mod-cover' name: 'go-test-cover'
entry: 'go-test-mod-cover.sh' entry: 'go-test-cover.sh'
language: 'script' language: 'script'
description: 'Run go test in module mode (GO111MODULE=on) with coverage report' description: 'Run go test in module mode with coverage report.'
pass_filenames: false pass_filenames: false
- id: golangci-lint-mod files: .*.go"
name: 'golangci-lint-mod' always_run: true
entry: 'golangci-lint-mod.sh' - id: golangci-lint
name: 'golangci-lint'
entry: 'golangci-lint.sh'
language: 'script' language: 'script'
description: 'Run golangci-lint in module mode (GO111MODULE=on)' description: 'Run golangci-lint in module mode.'
pass_filenames: false pass_filenames: false
files: .*.go"
always_run: true

3
go-test-cover.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
$(which go) test -cover

View File

@ -1,5 +0,0 @@
#!/usr/bin/env sh
export GO111MODULE=on
$(which go) test -cover ./...

View File

@ -1,5 +0,0 @@
#!/usr/bin/env sh
export GO111MODULE=on
$(which golangci-lint) run ./...

3
golangci-lint.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
$(which golangci-lint) run