Skip to content

Commit 485e360

Browse files
committed
Update faas-middleware and Go version to 1.21
The new version of faas-middleware adds an X-OpenFaaS-Internal header when maximum concurrency is met due to max_inflight. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 5d4cadc commit 485e360

File tree

422 files changed

+3063
-12657
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

422 files changed

+3063
-12657
lines changed

.github/workflows/build.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Install Go
1919
uses: actions/setup-go@v4
2020
with:
21-
go-version: 1.20.x
21+
go-version: 1.21.x
2222
- name: Make all
2323
run: make all
2424

.github/workflows/publish.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install Go
2727
uses: actions/setup-go@v4
2828
with:
29-
go-version: 1.20.x
29+
go-version: 1.21.x
3030
- name: Make all
3131
run: make all
3232

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ hashgen:
4343
.PHONY: dist
4444
dist:
4545
@echo "+ $@"
46-
CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags $(LDFLAGS) -installsuffix cgo -o bin/fwatchdog-amd64
47-
GOARM=7 GOARCH=arm CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags $(LDFLAGS) -installsuffix cgo -o bin/fwatchdog-arm
48-
GOARCH=arm64 CGO_ENABLED=0 GOOS=linux go build -mod=vendor -a -ldflags $(LDFLAGS) -installsuffix cgo -o bin/fwatchdog-arm64
49-
GOOS=windows CGO_ENABLED=0 go build -mod=vendor -a -ldflags $(LDFLAGS) -installsuffix cgo -o bin/fwatchdog.exe
46+
CGO_ENABLED=0 GOOS=linux go build -mod=vendor -ldflags $(LDFLAGS) -o bin/fwatchdog-amd64
47+
GOARM=7 GOARCH=arm CGO_ENABLED=0 GOOS=linux go build -mod=vendor -ldflags $(LDFLAGS) -o bin/fwatchdog-arm
48+
GOARCH=arm64 CGO_ENABLED=0 GOOS=linux go build -mod=vendor -ldflags $(LDFLAGS) -o bin/fwatchdog-arm64
49+
GOOS=windows CGO_ENABLED=0 go build -mod=vendor -ldflags $(LDFLAGS) -o bin/fwatchdog.exe
5050

5151
# use this with
5252
# `./ci/copy_redist.sh $(make print-image) && ./ci/hashgen.sh`

go.mod

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
module github.com/openfaas/of-watchdog
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/docker/go-units v0.5.0
7-
github.com/openfaas/faas-middleware v1.2.2
8-
github.com/prometheus/client_golang v1.15.1
7+
github.com/openfaas/faas-middleware v1.2.3
8+
github.com/prometheus/client_golang v1.17.0
9+
)
10+
11+
require (
12+
github.com/prometheus/client_model v0.5.0 // indirect
13+
github.com/prometheus/common v0.45.0 // indirect
14+
github.com/prometheus/procfs v0.12.0 // indirect
15+
golang.org/x/sys v0.14.0 // indirect
916
)
1017

1118
require (
@@ -14,9 +21,6 @@ require (
1421
github.com/davecgh/go-spew v1.1.1 // indirect
1522
github.com/golang/protobuf v1.5.3 // indirect
1623
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
17-
github.com/prometheus/client_model v0.4.0 // indirect
18-
github.com/prometheus/common v0.44.0 // indirect
19-
github.com/prometheus/procfs v0.10.1 // indirect
20-
golang.org/x/sys v0.8.0 // indirect
21-
google.golang.org/protobuf v1.30.0 // indirect
24+
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
25+
google.golang.org/protobuf v1.31.0 // indirect
2226
)

go.sum

+23-488
Large diffs are not rendered by default.

vendor/github.com/golang/protobuf/AUTHORS

-3
This file was deleted.

vendor/github.com/golang/protobuf/CONTRIBUTORS

-3
This file was deleted.

vendor/github.com/golang/protobuf/LICENSE

-28
This file was deleted.

0 commit comments

Comments
 (0)