From b614b5c31d6b9fba7611f580d11c79c988883111 Mon Sep 17 00:00:00 2001 From: Sebastian Widmer Date: Mon, 13 Nov 2023 13:57:47 +0100 Subject: [PATCH] Update module github.com/deepmap/oapi-codegen to v2 --- go.mod | 3 ++- go.sum | 2 ++ pkg/agent/agent.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 09f9499..5639b45 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ toolchain go1.21.4 require ( github.com/alecthomas/kingpin/v2 v2.3.2 - github.com/deepmap/oapi-codegen v1.16.2 + github.com/deepmap/oapi-codegen/v2 v2.0.0 github.com/projectsyn/lieutenant-api v0.11.0 github.com/stretchr/testify v1.8.4 go.uber.org/multierr v1.11.0 @@ -32,6 +32,7 @@ require ( github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect github.com/chenzhuoyu/iasm v0.9.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect + github.com/deepmap/oapi-codegen v1.16.2 // indirect github.com/emicklei/go-restful/v3 v3.11.0 // indirect github.com/fatih/structs v1.1.0 // indirect github.com/flosch/pongo2/v4 v4.0.2 // indirect diff --git a/go.sum b/go.sum index 053167e..23496d2 100644 --- a/go.sum +++ b/go.sum @@ -43,6 +43,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/deepmap/oapi-codegen v1.16.2 h1:xGHx0dNqYfy9gE8a7AVgVM8Sd5oF9SEgePzP+UPAUXI= github.com/deepmap/oapi-codegen v1.16.2/go.mod h1:rdYoEA2GE+riuZ91DvpmBX9hJbQpuY9wchXpfQ3n+ho= +github.com/deepmap/oapi-codegen/v2 v2.0.0 h1:3TS7w3r+XnjKFXcbFbc16pTWzfTy0OLPkCsutEHjWDA= +github.com/deepmap/oapi-codegen/v2 v2.0.0/go.mod h1:7zR+ZL3WzLeCkr2k8oWTxEa0v8y/F25ane0l6A5UjLA= github.com/emicklei/go-restful/v3 v3.11.0 h1:rAQeMHw1c7zTmncogyy8VvRZwtkmkZ4FxERmMY4rD+g= github.com/emicklei/go-restful/v3 v3.11.0/go.mod h1:6n3XBCmQQb25CM2LCACGz8ukIrRry+4bhvbpWn3mrbc= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= diff --git a/pkg/agent/agent.go b/pkg/agent/agent.go index 8ee45d6..9041f89 100644 --- a/pkg/agent/agent.go +++ b/pkg/agent/agent.go @@ -10,7 +10,7 @@ import ( "os" "time" - "github.com/deepmap/oapi-codegen/pkg/securityprovider" + "github.com/deepmap/oapi-codegen/v2/pkg/securityprovider" "github.com/projectsyn/lieutenant-api/pkg/api" "github.com/projectsyn/steward/pkg/argocd" "k8s.io/client-go/kubernetes"