Skip to content

Commit c5bfca5

Browse files
committed
Fix
1 parent 308a5d2 commit c5bfca5

File tree

3 files changed

+69
-2
lines changed

3 files changed

+69
-2
lines changed

components/gitpod-db/go/conn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func ConnectionParamsFromEnv() ConnectionParams {
4242
func Connect(p ConnectionParams) (*gorm.DB, error) {
4343
loc, err := time.LoadLocation("UTC")
4444
if err != nil {
45-
return nil, fmt.Errorf("Failed to load UT location: %w", err)
45+
return nil, fmt.Errorf("Failed to load UTC location: %w", err)
4646
}
4747
cfg := driver_mysql.Config{
4848
User: p.User,
@@ -58,7 +58,7 @@ func Connect(p ConnectionParams) (*gorm.DB, error) {
5858
if p.CaCert != "" {
5959
rootCertPool := x509.NewCertPool()
6060
if ok := rootCertPool.AppendCertsFromPEM([]byte(p.CaCert)); !ok {
61-
return nil, fmt.Errorf("failed to append custome certificate for database connection")
61+
return nil, fmt.Errorf("failed to append custom certificate for database connection")
6262
}
6363

6464
tlsConfigName := "custom"

components/gitpod-db/go/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ require (
2424
github.com/go-logr/logr v1.2.3 // indirect
2525
github.com/go-logr/stdr v1.2.2 // indirect
2626
github.com/golang/protobuf v1.5.2 // indirect
27+
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
2728
github.com/jinzhu/inflection v1.0.0 // indirect
2829
github.com/jinzhu/now v1.1.5 // indirect
2930
github.com/pmezard/go-difflib v1.0.0 // indirect
3031
go.opentelemetry.io/otel v1.13.0 // indirect
3132
go.opentelemetry.io/otel/metric v0.36.0 // indirect
3233
go.opentelemetry.io/otel/trace v1.13.0 // indirect
34+
golang.org/x/net v0.4.0 // indirect
3335
golang.org/x/sys v0.3.0 // indirect
36+
golang.org/x/text v0.5.0 // indirect
3437
google.golang.org/genproto v0.0.0-20221118155620-16455021b5e6 // indirect
3538
gopkg.in/yaml.v3 v3.0.1 // indirect
3639
)

components/gitpod-db/go/go.sum

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)