Skip to content

Commit

Permalink
fix: pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Nov 19, 2024
1 parent 856a97e commit 56d3308
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 143 deletions.
18 changes: 8 additions & 10 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ generate:
RUN apk update && apk add openjdk11
RUN go install go.uber.org/mock/[email protected]
RUN go install github.com/princjef/gomarkdoc/cmd/gomarkdoc@latest
COPY (+sources/*) /src
COPY --dir (+lint/*) /src/
COPY (+tidy/*) /src/
WORKDIR /src
RUN go generate ./...
SAVE ARTIFACT internal AS LOCAL internal
Expand Down Expand Up @@ -130,19 +131,16 @@ lint:
SAVE ARTIFACT main.go AS LOCAL main.go

pre-commit:
WAIT
BUILD +tidy
BUILD +lint
BUILD +openapi
BUILD +openapi-markdown
END
BUILD +tidy
BUILD +lint
BUILD +openapi
BUILD +openapi-markdown
BUILD +generate
BUILD +generate-client
BUILD +export-docs-events

# todo: currently not working with earthly
#BUILD ./test/rolling-upgrades+pre-commit
#BUILD ./tools/*+pre-commit
BUILD ./test/*+pre-commit
BUILD ./tools/*+pre-commit

openapi:
FROM node:20-alpine
Expand Down
11 changes: 0 additions & 11 deletions test/rolling-upgrades/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ require (
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/charmbracelet/bubbles v0.16.1 // indirect
github.com/charmbracelet/bubbletea v0.24.2 // indirect
github.com/charmbracelet/lipgloss v0.7.1 // indirect
Expand Down Expand Up @@ -56,13 +54,10 @@ require (
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/hcl/v2 v2.17.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/invopop/jsonschema v0.12.0 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/lithammer/shortuuid/v3 v3.0.7 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
Expand All @@ -84,7 +79,6 @@ require (
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect
github.com/pulumi/esc v0.6.2 // indirect
github.com/puzpuzpuz/xsync/v3 v3.4.0 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
Expand All @@ -96,16 +90,11 @@ require (
github.com/spf13/cobra v1.8.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
github.com/tmthrgd/go-hex v0.0.0-20190904060850-447a3041c3bc // indirect
github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
github.com/uptrace/bun v1.2.5 // indirect
github.com/uptrace/opentelemetry-go-extra/otellogrus v0.3.2 // indirect
github.com/uptrace/opentelemetry-go-extra/otelutil v0.3.2 // indirect
github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/zclconf/go-cty v1.13.2 // indirect
go.opentelemetry.io/otel v1.32.0 // indirect
Expand Down
Loading

0 comments on commit 56d3308

Please sign in to comment.