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: Update all tools #718

Merged
merged 1 commit into from
May 13, 2024
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
2 changes: 0 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ eval "$(devbox generate direnv --print-envrc)"

# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/
# for more details

export TASK_X_ANY_VARIABLES=1
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ repos:
- id: end-of-file-fixer
stages: [commit]
- repo: https://github.com/rhysd/actionlint
rev: v1.6.27
rev: v1.7.0
hooks:
- id: actionlint-system
stages: [commit]
Expand All @@ -61,7 +61,7 @@ repos:
stages: [commit]
args: ["-e", "SC2211"]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
rev: v0.40.0
hooks:
- id: markdownlint
stages: [commit]
Expand Down
308 changes: 154 additions & 154 deletions devbox.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module github.com/mesosphere/mindthegap

go 1.22.0

toolchain go1.22.2
toolchain go1.22.3

require (
github.com/aws/aws-sdk-go-v2 v1.26.1
Expand Down
6 changes: 3 additions & 3 deletions hack/flakes/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions tasks/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
version: '3'

vars:
GORELEASER_PARALLELISM: '$nproc --ignore=1'
GORELEASER_PARALLELISM:
sh: nproc --ignore=1
GORELEASER_DEBUG: false
GORELEASER_BUILD_ALL: false

env:
GIT_TREE_STATE: '$git status --porcelain &>/dev/null || echo dirty'
GIT_TREE_STATE:
sh: git status --porcelain &>/dev/null || echo dirty

tasks:
snapshot:
Expand Down Expand Up @@ -38,8 +40,10 @@ tasks:
release-unpublished:
desc: Builds a release locally with goreleaser for specific platforms without publishing
vars:
TEMP_CONFIG: '$mktemp'
TEMP_RELEASE_NOTES: '$mktemp'
TEMP_CONFIG:
sh: mktemp
TEMP_RELEASE_NOTES:
sh: mktemp
requires:
vars:
- GORELEASER_PLATFORMS
Expand Down
3 changes: 2 additions & 1 deletion tasks/git.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ tasks:
vars:
- NEW_GIT_TAG
vars:
GO_SUBMODULES: '$fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/'
GO_SUBMODULES:
sh: fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/
cmds:
- git tag -s "{{.NEW_GIT_TAG}}" -a -m "{{.NEW_GIT_TAG}}"
- for: {var: GO_SUBMODULES, as: GO_SUBMODULE_PATH}
Expand Down
12 changes: 8 additions & 4 deletions tasks/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ tasks:
lint:
desc: Runs golangci-lint for all modules in repository
vars:
GO_SUBMODULES: '$fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/'
GO_SUBMODULES:
sh: fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/
cmds:
- task: lint-macro
vars:
Expand All @@ -42,7 +43,8 @@ tasks:
mod-tidy:
desc: Run go mod tidy for all modules in the repository
vars:
GO_SUBMODULES: '$fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/'
GO_SUBMODULES:
sh: fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/
cmds:
- task: mod-tidy-macro
vars:
Expand All @@ -64,7 +66,8 @@ tasks:
clean:
desc: Cleans go build, test and modules caches for all modules in the repository
vars:
GO_SUBMODULES: '$fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/'
GO_SUBMODULES:
sh: fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/
cmds:
- task: clean-macro
vars:
Expand All @@ -86,7 +89,8 @@ tasks:
vulncheck:
desc: Runs govulncheck for all modules in repository
vars:
GO_SUBMODULES: '$fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/'
GO_SUBMODULES:
sh: fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/
cmds:
- task: vulncheck-macro
vars:
Expand Down
9 changes: 6 additions & 3 deletions tasks/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ tasks:
unit:
desc: Runs tests
vars:
GO_SUBMODULES: '$fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/'
GO_SUBMODULES:
sh: fd go.mod --min-depth 2 --strip-cwd-prefix --exec echo {//}/
cmds:
- task: gotestsum-macro
vars:
Expand All @@ -56,8 +57,10 @@ tasks:
vars:
GORELEASER_PLATFORMS: '"linux_amd64","linux_arm64","{{.E2E_GOOS}}_{{.E2E_GOARCH}}"'
vars:
E2E_GOOS: '$go env GOOS'
E2E_GOARCH: '$go env GOARCH'
E2E_GOOS:
sh: go env GOOS
E2E_GOARCH:
sh: go env GOARCH
cmds:
- cmd: |
ginkgo run \
Expand Down
Loading