Skip to content

Commit

Permalink
build: go v1.21.1 (#530)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson authored Oct 17, 2023
1 parent 1107dfb commit c0a4821
Show file tree
Hide file tree
Showing 10 changed files with 423 additions and 43 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/checks-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install devbox
uses: jetpack-io/[email protected]
Expand All @@ -33,7 +35,9 @@ jobs:
NIX_USER_COUNT: 4

- name: Build
run: devbox run -- make SKIP_UPX=false build-snapshot
run: |
devbox run -- \
make GORELEASER_FLAGS=$'--config=<(gojq --yaml-input --yaml-output \'del(.builds[0].goarch) | del(.builds[0].goos) | .builds[0].targets|=(["darwin_amd64_v1"])\' .goreleaser.yml) --skip=validate,publish' release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
8 changes: 7 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ linters:
- errcheck
- errchkjson
- errname
- gocheckcompilerdirectives
- gochecknoinits
- gci
- ginkgolinter
- goconst
- gocritic
- gocyclo
Expand All @@ -25,18 +27,23 @@ linters:
- govet
- ineffassign
- lll
- loggercheck
- mirror
- misspell
- nolintlint
- prealloc
- reassign
- staticcheck
- stylecheck
- tenv
- testableexamples
- thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- whitespace

linters-settings:
Expand Down Expand Up @@ -66,7 +73,6 @@ linters-settings:
- performance
- style
gofumpt:
lang-version: "1.17"
extra-rules: true
lll:
line-length: 120
Expand Down
4 changes: 2 additions & 2 deletions devbox.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"packages": [
"[email protected]",
"bash@latest",
"coreutils@latest",
"crane@latest",
Expand All @@ -11,8 +10,9 @@
"gnused@latest",
"gnugrep@latest",
"gnumake@latest",
"go@latest",
"gojq@latest",
"golangci-lint@latest",
"path:./hack/flakes/golangci-lint",
"golines@latest",
"goreleaser@latest",
"gotestsum@latest",
Expand Down
Loading

0 comments on commit c0a4821

Please sign in to comment.