Skip to content

Commit

Permalink
Merge pull request #3573 from uselagoon/additional-go-dep-updates
Browse files Browse the repository at this point in the history
chore: update go version and dependency bumps for services
  • Loading branch information
shreddedbacon authored Oct 19, 2023
2 parents 6688bdd + 2e665bb commit 1576f0a
Show file tree
Hide file tree
Showing 19 changed files with 2,652 additions and 218 deletions.
2 changes: 1 addition & 1 deletion services/actions-handler/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# build the binary
ARG UPSTREAM_REPO
ARG UPSTREAM_TAG
FROM golang:1.18-alpine3.17 AS builder
FROM golang:1.21-alpine AS builder
# bring in all the packages
COPY . /go/src/github.com/uselagoon/lagoon/services/actions-handler/
WORKDIR /go/src/github.com/uselagoon/lagoon/services/actions-handler/
Expand Down
2 changes: 1 addition & 1 deletion services/actions-handler/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/uselagoon/lagoon/services/actions-handler

go 1.18
go 1.21

require (
github.com/cheshir/go-mq/v2 v2.0.1
Expand Down
1 change: 1 addition & 0 deletions services/actions-handler/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ github.com/mailru/easyjson v0.7.0/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7
github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
github.com/marstr/guid v1.1.0/go.mod h1:74gB1z2wpxxInTG6yaqA7KrtM0NZ+RbrcqDvYHefzho=
github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE=
github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU=
github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2 h1:JAEbJn3j/FrhdWA9jW8B5ajsLIjeuEHLi8xE4fk997o=
github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2/go.mod h1:0KeJpeMD6o+O4hW7qJOT7vyQPKrWmj26uf5wMc/IiIs=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
Expand Down
2 changes: 1 addition & 1 deletion services/backup-handler/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# build the binary
ARG UPSTREAM_REPO
ARG UPSTREAM_TAG
FROM golang:1.18-alpine3.17 AS builder
FROM golang:1.21-alpine AS builder

# bring in all the packages
COPY . /go/src/github.com/uselagoon/lagoon/services/backup-handler/
Expand Down
4 changes: 2 additions & 2 deletions services/backup-handler/go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/uselagoon/lagoon/services/backup-handler

go 1.18
go 1.21

require (
github.com/amazeeio/lagoon-cli v0.0.0-20200309230012-d971a4d07053
github.com/google/uuid v1.3.0
github.com/isayme/go-amqp-reconnect v0.0.0-20210303120416-fc811b0bcda2
github.com/streadway/amqp v1.0.0
github.com/uselagoon/lagoon-cli v0.19.0
)

require (
Expand Down
129 changes: 37 additions & 92 deletions services/backup-handler/go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions services/backup-handler/internal/handler/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"net/http"
"regexp"

"github.com/amazeeio/lagoon-cli/pkg/api"
"github.com/google/uuid"
"github.com/isayme/go-amqp-reconnect/rabbitmq"
"github.com/streadway/amqp"
"github.com/uselagoon/lagoon-cli/pkg/api"
)

// BackupInterface .
Expand Down Expand Up @@ -41,7 +41,7 @@ type RabbitBroker struct {
type GraphQLEndpoint struct {
Endpoint string `json:"endpoint"`
JWTAudience string `json:"audience"`
TokenSigningKey string `json:"tokenSigningKey`
TokenSigningKey string `json:"tokenSigningKey"`
}

// NewBackupHandler .
Expand Down
2 changes: 1 addition & 1 deletion services/backup-handler/internal/handler/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"testing"

"github.com/amazeeio/lagoon-cli/pkg/api"
"github.com/uselagoon/lagoon-cli/pkg/api"
)

func checkEqual(t *testing.T, got, want interface{}, msgs ...interface{}) {
Expand Down
2 changes: 1 addition & 1 deletion services/logs2notifications/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# build the binary
ARG UPSTREAM_REPO
ARG UPSTREAM_TAG
FROM golang:1.18-alpine3.17 AS builder
FROM golang:1.21-alpine AS builder
# bring in all the packages
COPY . /go/src/github.com/uselagoon/lagoon/services/logs2notifications/
WORKDIR /go/src/github.com/uselagoon/lagoon/services/logs2notifications/
Expand Down
20 changes: 6 additions & 14 deletions services/logs2notifications/go.mod
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module github.com/uselagoon/lagoon/services/logs2notifications

go 1.18
go 1.21

require (
github.com/aws/aws-sdk-go v1.41.11
github.com/cheshir/go-mq v1.0.2
github.com/cheshir/go-mq/v2 v2.0.1
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/machinebox/graphql v0.2.3-0.20181106130121-3a9253180225
github.com/matryer/try v0.0.0-20161228173917-9ac251b645a2
Expand All @@ -13,22 +13,14 @@ require (
)

require (
github.com/NeowayLabs/wabbit v0.0.0-20200409220312-12e68ab5b0c6 // indirect
github.com/NeowayLabs/wabbit v0.0.0-20210927194032-73ad61d1620e // indirect
github.com/cheekybits/is v0.0.0-20150225183255-68e9c0620927 // indirect
github.com/fsouza/go-dockerclient v1.7.3 // indirect
github.com/google/uuid v1.1.1 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/matryer/is v1.4.0 // indirect
github.com/pborman/uuid v1.2.0 // indirect
github.com/pborman/uuid v1.2.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/streadway/amqp v0.0.0-20200108173154-1c71cc93ed71 // indirect
github.com/stretchr/testify v1.4.0 // indirect
github.com/tiago4orion/conjure v0.0.0-20150908101743-93cb30b9d218 // indirect
github.com/rabbitmq/amqp091-go v1.7.0 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
)

// Fixes for AppID
replace github.com/cheshir/go-mq v1.0.2 => github.com/shreddedbacon/go-mq v0.0.0-20200419104937-b8e9af912ead

replace github.com/NeowayLabs/wabbit v0.0.0-20200409220312-12e68ab5b0c6 => github.com/shreddedbacon/wabbit v0.0.0-20200419104837-5b7b769d7204
Loading

0 comments on commit 1576f0a

Please sign in to comment.