Skip to content

Commit f3dfda9

Browse files
Bump to ginkgo/v2 && lager/v3 (#7)
* Bump to ginkgo/v2 && lager/v3 * fix `go vet` failures
1 parent 11af6ea commit f3dfda9

11 files changed

+16
-16
lines changed

cmd/file-server/config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"code.cloudfoundry.org/debugserver"
88
loggingclient "code.cloudfoundry.org/diego-logging-client"
9-
"code.cloudfoundry.org/lager/lagerflags"
9+
"code.cloudfoundry.org/lager/v3/lagerflags"
1010
)
1111

1212
type FileServerConfig struct {

cmd/file-server/config/config_suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package config_test
22

33
import (
4-
. "github.com/onsi/ginkgo"
4+
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
66

77
"testing"

cmd/file-server/config/config_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66

77
"code.cloudfoundry.org/debugserver"
88
"code.cloudfoundry.org/fileserver/cmd/file-server/config"
9-
"code.cloudfoundry.org/lager/lagerflags"
9+
"code.cloudfoundry.org/lager/v3/lagerflags"
1010

11-
. "github.com/onsi/ginkgo"
11+
. "github.com/onsi/ginkgo/v2"
1212
. "github.com/onsi/gomega"
1313
)
1414

cmd/file-server/main.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"code.cloudfoundry.org/fileserver/cmd/file-server/config"
1414
"code.cloudfoundry.org/fileserver/handlers"
1515
"code.cloudfoundry.org/go-loggregator/v8/runtimeemitter"
16-
"code.cloudfoundry.org/lager"
17-
"code.cloudfoundry.org/lager/lagerflags"
16+
"code.cloudfoundry.org/lager/v3"
17+
"code.cloudfoundry.org/lager/v3/lagerflags"
1818
"code.cloudfoundry.org/tlsconfig"
1919
"github.com/tedsuo/ifrit"
2020
"github.com/tedsuo/ifrit/grouper"
@@ -60,12 +60,12 @@ func main() {
6060
}
6161
}
6262
members := grouper.Members{
63-
{"file server", initializeServer(logger, cfg.StaticDirectory, cfg.ServerAddress, cfg.HTTPSListenAddr, tlsConfig)},
63+
{Name: "file server", Runner: initializeServer(logger, cfg.StaticDirectory, cfg.ServerAddress, cfg.HTTPSListenAddr, tlsConfig)},
6464
}
6565

6666
if dbgAddr := debugserver.DebugAddress(flag.CommandLine); dbgAddr != "" {
6767
members = append(grouper.Members{
68-
{"debug-server", debugserver.Runner(dbgAddr, reconfigurableSink)},
68+
{Name: "debug-server", Runner: debugserver.Runner(dbgAddr, reconfigurableSink)},
6969
}, members...)
7070
}
7171

cmd/file-server/main_suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main_test
22

33
import (
4-
. "github.com/onsi/ginkgo"
4+
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
66
"github.com/onsi/gomega/gexec"
77

cmd/file-server/main_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ import (
1313
"path/filepath"
1414

1515
"code.cloudfoundry.org/fileserver/cmd/file-server/config"
16-
"code.cloudfoundry.org/lager/lagerflags"
16+
"code.cloudfoundry.org/lager/v3/lagerflags"
1717
"code.cloudfoundry.org/tlsconfig"
1818
"code.cloudfoundry.org/tlsconfig/certtest"
19-
. "github.com/onsi/ginkgo"
19+
. "github.com/onsi/ginkgo/v2"
2020
. "github.com/onsi/gomega"
2121
"github.com/onsi/gomega/gbytes"
2222
"github.com/onsi/gomega/gexec"

handlers/handlers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55

66
"code.cloudfoundry.org/fileserver"
77
"code.cloudfoundry.org/fileserver/handlers/static"
8-
"code.cloudfoundry.org/lager"
8+
"code.cloudfoundry.org/lager/v3"
99
"github.com/tedsuo/rata"
1010
)
1111

handlers/static/fileserver_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"time"
1313

1414
"code.cloudfoundry.org/fileserver/handlers/static"
15-
. "github.com/onsi/ginkgo"
15+
. "github.com/onsi/ginkgo/v2"
1616
. "github.com/onsi/gomega"
1717
)
1818

handlers/static/logging_handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package static
33
import (
44
"net/http"
55

6-
"code.cloudfoundry.org/lager"
6+
"code.cloudfoundry.org/lager/v3"
77
)
88

99
type loggingHandler struct {

handlers/static/static.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package static
33
import (
44
"net/http"
55

6-
"code.cloudfoundry.org/lager"
6+
"code.cloudfoundry.org/lager/v3"
77
)
88

99
func New(dir, pathPrefix string, logger lager.Logger) http.Handler {

handlers/static/static_suite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package static_test
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo"
6+
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88
)
99

0 commit comments

Comments
 (0)