Skip to content

Commit

Permalink
Use Go 1.19 (#23)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha authored Sep 24, 2022
1 parent 930e607 commit a6c92e3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.18
go-version: ^1.19
id: go

- name: Check out code into the Go module directory
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ARCH := $(if $(GOARCH),$(GOARCH),$(shell go env GOARCH))
BASEIMAGE_PROD ?= gcr.io/distroless/static-debian11
BASEIMAGE_DBG ?= debian:bullseye

GO_VERSION ?= 1.18
GO_VERSION ?= 1.19
BUILD_IMAGE ?= appscode/golang-dev:$(GO_VERSION)

OUTBIN = bin/$(OS)_$(ARCH)/$(BIN)
Expand Down
3 changes: 1 addition & 2 deletions schema_validator/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*
`grpc_validator` a generic request contents schema_validator server-side middleware for gRPC.
Request Validator Middleware
# Request Validator Middleware
Validating input is important, and hard. It also causes a lot of boiler plate. This middleware
checks for the existance of a `Validate` method on each of the messages of a gRPC request. This
Expand All @@ -16,7 +16,6 @@ While it is generic, it was indented to be used with https://github.com/mwitkow/
a Go protocol buffers codegen plugin that creates the `Validate` methods (including nested messages)
based on declarative options in the `.proto` files themselves. For example:
syntax = "proto3";
package schema_validator.examples;
import "github.com/mwitkow/go-proto-validators/schema_validator.proto";
Expand Down
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package server
import (
"crypto/tls"
"crypto/x509"
"io/ioutil"
"net"
"net/http"
"os"
"strings"
"time"

Expand Down Expand Up @@ -149,7 +149,7 @@ func (s *Server) ServeHTTPS() {
NextProtos: []string{"h2", "http/1.1"},
}
if s.CACertFile != "" {
caCert, err := ioutil.ReadFile(s.CACertFile)
caCert, err := os.ReadFile(s.CACertFile)
if err != nil {
klog.Fatal(err)
}
Expand Down
2 changes: 2 additions & 0 deletions testing/testproto/test.pb.go

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

0 comments on commit a6c92e3

Please sign in to comment.