Skip to content

Commit b359ca5

Browse files
authored
ci/cd: use the build tag nobadger to exclude badgerdb (#6031)
* ci/cd: use the build tag `nobadger` to exclude badgerdb * upgrade github.com/google/certificate-transparency-go@master
1 parent c2d889f commit b359ca5

File tree

5 files changed

+69
-67
lines changed

5 files changed

+69
-67
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
env:
9696
CGO_ENABLED: 0
9797
run: |
98-
go build -trimpath -ldflags="-w -s" -v
98+
go build -tags nobdger -trimpath -ldflags="-w -s" -v
9999
100100
- name: Publish Build Artifact
101101
uses: actions/upload-artifact@v4
@@ -112,7 +112,7 @@ jobs:
112112
# continue-on-error: true
113113
run: |
114114
# (go test -v -coverprofile=cover-profile.out -race ./... 2>&1) > test-results/test-result.out
115-
go test -v -coverprofile="cover-profile.out" -short -race ./...
115+
go test -tags nobadger -v -coverprofile="cover-profile.out" -short -race ./...
116116
# echo "status=$?" >> $GITHUB_OUTPUT
117117
118118
# Relevant step if we reinvestigate publishing test/coverage reports
@@ -147,7 +147,7 @@ jobs:
147147
148148
# The environment is fresh, so there's no point in keeping accepting and adding the key.
149149
rsync -arz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress --delete --exclude '.git' . "$CI_USER"@ci-s390x.caddyserver.com:/var/tmp/"$short_sha"
150-
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -t "$CI_USER"@ci-s390x.caddyserver.com "cd /var/tmp/$short_sha; go version; go env; printf "\n\n";CGO_ENABLED=0 go test -v ./..."
150+
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -t "$CI_USER"@ci-s390x.caddyserver.com "cd /var/tmp/$short_sha; go version; go env; printf "\n\n";CGO_ENABLED=0 go test -tags nobadger -v ./..."
151151
test_result=$?
152152
153153
# There's no need leaving the files around
@@ -169,5 +169,3 @@ jobs:
169169
with:
170170
version: latest
171171
args: check
172-
env:
173-
TAG: ${{ steps.vars.outputs.version_tag }}

.github/workflows/cross-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
continue-on-error: true
6969
working-directory: ./cmd/caddy
7070
run: |
71-
GOOS=$GOOS GOARCH=$GOARCH go build -trimpath -o caddy-"$GOOS"-$GOARCH 2> /dev/null
71+
GOOS=$GOOS GOARCH=$GOARCH go build -tags nobadger -trimpath -o caddy-"$GOOS"-$GOARCH 2> /dev/null
7272
if [ $? -ne 0 ]; then
7373
echo "::warning ::$GOOS Build Failed"
7474
exit 0

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ builds:
7777
- -mod=readonly
7878
ldflags:
7979
- -s -w
80+
tags:
81+
- nobadger
8082

8183
signs:
8284
- cmd: cosign

go.mod

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@ require (
1515
github.com/klauspost/compress v1.17.0
1616
github.com/klauspost/cpuid/v2 v2.2.5
1717
github.com/mholt/acmez v1.2.0
18-
github.com/prometheus/client_golang v1.15.1
18+
github.com/prometheus/client_golang v1.18.0
1919
github.com/quic-go/quic-go v0.40.1
2020
github.com/smallstep/certificates v0.25.0
2121
github.com/smallstep/nosql v0.6.0
2222
github.com/smallstep/truststore v0.12.1
23-
github.com/spf13/cobra v1.7.0
23+
github.com/spf13/cobra v1.8.0
2424
github.com/spf13/pflag v1.0.5
2525
github.com/stretchr/testify v1.8.4
2626
github.com/tailscale/tscert v0.0.0-20230806124524-28a91b69a046
2727
github.com/yuin/goldmark v1.5.6
2828
github.com/yuin/goldmark-highlighting/v2 v2.0.0-20230729083705-37449abec8cc
29-
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.45.0
29+
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1
3030
go.opentelemetry.io/contrib/propagators/autoprop v0.42.0
3131
go.opentelemetry.io/otel v1.21.0
3232
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0
3333
go.opentelemetry.io/otel/sdk v1.21.0
3434
go.uber.org/automaxprocs v1.5.3
35-
go.uber.org/zap v1.25.0
36-
golang.org/x/crypto v0.17.0
35+
go.uber.org/zap v1.26.0
36+
golang.org/x/crypto v0.18.0
3737
golang.org/x/exp v0.0.0-20231214170342-aacd6d4b4611
3838
golang.org/x/net v0.19.0
3939
golang.org/x/sync v0.5.0
40-
golang.org/x/term v0.15.0
41-
google.golang.org/genproto/googleapis/api v0.0.0-20231016165738-49dd2c1f3d0b
40+
golang.org/x/term v0.16.0
41+
google.golang.org/genproto/googleapis/api v0.0.0-20231120223509-83a465c0220f
4242
gopkg.in/natefinch/lumberjack.v2 v2.2.1
4343
gopkg.in/yaml.v3 v3.0.1
4444
)
@@ -50,11 +50,12 @@ require (
5050
github.com/davecgh/go-spew v1.1.1 // indirect
5151
github.com/fxamacker/cbor/v2 v2.5.0 // indirect
5252
github.com/golang/glog v1.1.2 // indirect
53-
github.com/google/certificate-transparency-go v1.1.6 // indirect
53+
github.com/google/certificate-transparency-go v1.1.8-0.20240110162603-74a5dd331745 // indirect
5454
github.com/google/go-tpm v0.9.0 // indirect
5555
github.com/google/go-tspi v0.3.0 // indirect
5656
github.com/google/pprof v0.0.0-20231212022811-ec68065c825e // indirect
5757
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.0 // indirect
58+
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
5859
github.com/onsi/ginkgo/v2 v2.13.2 // indirect
5960
github.com/pmezard/go-difflib v1.0.0 // indirect
6061
github.com/quic-go/qpack v0.4.0 // indirect
@@ -67,7 +68,7 @@ require (
6768
go.opentelemetry.io/contrib/propagators/jaeger v1.17.0 // indirect
6869
go.opentelemetry.io/contrib/propagators/ot v1.17.0 // indirect
6970
go.uber.org/mock v0.3.0 // indirect
70-
google.golang.org/genproto/googleapis/rpc v0.0.0-20231016165738-49dd2c1f3d0b // indirect
71+
google.golang.org/genproto/googleapis/rpc v0.0.0-20231127180814-3a041ad873d4 // indirect
7172
)
7273

7374
require (
@@ -80,13 +81,13 @@ require (
8081
github.com/cespare/xxhash v1.1.0 // indirect
8182
github.com/cespare/xxhash/v2 v2.2.0 // indirect
8283
github.com/chzyer/readline v1.5.1 // indirect
83-
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
84+
github.com/cpuguy83/go-md2man/v2 v2.0.3 // indirect
8485
github.com/dgraph-io/badger v1.6.2 // indirect
8586
github.com/dgraph-io/badger/v2 v2.2007.4 // indirect
8687
github.com/dgraph-io/ristretto v0.1.0 // indirect
8788
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
8889
github.com/dlclark/regexp2 v1.10.0 // indirect
89-
github.com/felixge/httpsnoop v1.0.3 // indirect
90+
github.com/felixge/httpsnoop v1.0.4 // indirect
9091
github.com/go-kit/kit v0.10.0 // indirect
9192
github.com/go-logfmt/logfmt v0.5.1 // indirect
9293
github.com/go-logr/logr v1.3.0 // indirect
@@ -110,7 +111,6 @@ require (
110111
github.com/manifoldco/promptui v0.9.0 // indirect
111112
github.com/mattn/go-colorable v0.1.8 // indirect
112113
github.com/mattn/go-isatty v0.0.16 // indirect
113-
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
114114
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
115115
github.com/micromdm/scep/v2 v2.1.0 // indirect
116116
github.com/miekg/dns v1.1.55 // indirect
@@ -119,9 +119,9 @@ require (
119119
github.com/mitchellh/reflectwalk v1.0.2 // indirect
120120
github.com/pires/go-proxyproto v0.7.0
121121
github.com/pkg/errors v0.9.1 // indirect
122-
github.com/prometheus/client_model v0.4.0 // indirect
123-
github.com/prometheus/common v0.42.0 // indirect
124-
github.com/prometheus/procfs v0.9.0 // indirect
122+
github.com/prometheus/client_model v0.5.0 // indirect
123+
github.com/prometheus/common v0.45.0 // indirect
124+
github.com/prometheus/procfs v0.12.0 // indirect
125125
github.com/rs/xid v1.5.0 // indirect
126126
github.com/russross/blackfriday/v2 v2.1.0 // indirect
127127
github.com/shopspring/decimal v1.2.0 // indirect
@@ -131,7 +131,7 @@ require (
131131
github.com/spf13/cast v1.4.1 // indirect
132132
github.com/stoewer/go-strcase v1.2.0 // indirect
133133
github.com/urfave/cli v1.22.14 // indirect
134-
go.etcd.io/bbolt v1.3.7 // indirect
134+
go.etcd.io/bbolt v1.3.8 // indirect
135135
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 // indirect
136136
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 // indirect
137137
go.opentelemetry.io/otel/metric v1.21.0 // indirect
@@ -142,10 +142,10 @@ require (
142142
go.step.sm/linkedca v0.20.1 // indirect
143143
go.uber.org/multierr v1.11.0 // indirect
144144
golang.org/x/mod v0.14.0 // indirect
145-
golang.org/x/sys v0.15.0
145+
golang.org/x/sys v0.16.0
146146
golang.org/x/text v0.14.0 // indirect
147147
golang.org/x/tools v0.16.1 // indirect
148-
google.golang.org/grpc v1.59.0 // indirect
148+
google.golang.org/grpc v1.60.1 // indirect
149149
google.golang.org/protobuf v1.31.0 // indirect
150150
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
151151
howett.net/plist v1.0.0 // indirect

0 commit comments

Comments
 (0)