Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.18
go-version: ^1.20
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Build
Expand All @@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: ^1.18
go-version: ^1.20
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand All @@ -42,7 +42,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: ^1.18
go-version: ^1.20
- name: Generated files
run: |
export PATH=$PATH:$(go env GOPATH)/bin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dispatch_turbine_go_dependency.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
ref: master
- uses: actions/setup-go@v3
with:
go-version: ^1.18
go-version: ^1.20
- name: Inject insteadOf configuration
env:
MEROXA_MACHINE: ${{ secrets.MEROXA_MACHINE }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ^1.18
go-version: ^1.20
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Run make fig
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
go-version: 1.20.x
-
name: Import GPG key
id: import_gpg
Expand Down
26 changes: 26 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,32 @@ linters-settings:
require-explanation: false # don't require an explanation for nolint directives
require-specific: false # don't require nolint directives to be specific about which linter is being skipped

depguard:
rules:
# Name of a rule.
main:
allow:
- $gostd
- github.com/meroxa
- github.com/alexeyco/simpletable
- github.com/briandowns/spinner
- github.com/cased/cased-go
- github.com/fatih/color
- github.com/golang/mock/gomock
- github.com/google/go-cmp
- github.com/google/uuid
- github.com/gorilla/mux
- github.com/manifoldco/promptui
- github.com/mattn/go-shellwords
- github.com/nirasan/go-oauth-pkce-code-verifier
- github.com/pkg/browser
- github.com/skratchdot/open-golang/open
- github.com/spf13/cobra
- github.com/spf13/pflag
- github.com/spf13/viper
- github.com/stretchr/testify
- github.com/withfig/autocomplete-tools/integrations/cobra

linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
Expand Down