Skip to content

Commit

Permalink
Bump golang version to 1.20 (#537)
Browse files Browse the repository at this point in the history
* Bump golang version to 1.20

* Upgrade swagger

---------

Co-authored-by: Zhuojie Zhou <[email protected]>
  • Loading branch information
nothing0012 and zhouzhuojie authored Jun 25, 2023
1 parent 347a36d commit 10f5e51
Show file tree
Hide file tree
Showing 15 changed files with 64 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.19
go-version: 1.20
- name: Check out source code
uses: actions/checkout@v1
- run: echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN make build_ui
######################################
# Prepare go_builder
######################################
FROM golang:1.19-alpine3.17 as go_builder
FROM golang:1.20-alpine as go_builder
WORKDIR /go/src/github.com/openflagr/flagr

RUN apk add --no-cache git make build-base
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ start:
gen: api_docs swagger

deps:
@go install github.com/go-swagger/go-swagger/cmd/[email protected].4
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1
@go install github.com/go-swagger/go-swagger/cmd/[email protected].5
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.3

serve_docs:
@npm install -g docsify-cli@4
Expand Down
2 changes: 1 addition & 1 deletion docs/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ docker run -it -p 18000:18000 ghcr.io/openflagr/flagr

Install Dependencies.

- Go (1.19+)
- Go (1.20+)
- Make (for Makefile)
- NPM (for building UI)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/openflagr/flagr

go 1.19
go 1.20

require (
cloud.google.com/go v0.108.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/Dockerfile-Integration-Test
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19-alpine3.17 as go_builder
FROM golang:1.20-alpine as go_builder
WORKDIR /go/src/github.com/openflagr/flagr
RUN apk add --no-cache git make build-base
ADD . .
Expand Down
5 changes: 5 additions & 0 deletions swagger_gen/models/eval_debug_log.go

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

10 changes: 10 additions & 0 deletions swagger_gen/models/eval_result.go

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

5 changes: 5 additions & 0 deletions swagger_gen/models/evaluation_batch_request.go

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

5 changes: 5 additions & 0 deletions swagger_gen/models/evaluation_batch_response.go

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

15 changes: 15 additions & 0 deletions swagger_gen/models/flag.go

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

1 change: 1 addition & 0 deletions swagger_gen/models/flag_snapshot.go

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

5 changes: 5 additions & 0 deletions swagger_gen/models/put_distributions_request.go

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

10 changes: 10 additions & 0 deletions swagger_gen/models/segment.go

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

2 changes: 1 addition & 1 deletion swagger_gen/restapi/operations/flagr_api.go

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

0 comments on commit 10f5e51

Please sign in to comment.