Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: go v1.21.1 #530

Merged
merged 1 commit into from
Oct 17, 2023
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: 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
Loading