From 5207ccc664cc204159dd60e7501595dee72eaec6 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 29 May 2022 13:56:55 +0200 Subject: [PATCH] fix(deps): update module github.com/thegeeklab/drone-plugin-lib to v2 --- cmd/drone-s3-sync/main.go | 4 ++-- go.mod | 6 +++--- go.sum | 12 ++++++------ plugin/plugin.go | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/cmd/drone-s3-sync/main.go b/cmd/drone-s3-sync/main.go index 6461933..6d534de 100644 --- a/cmd/drone-s3-sync/main.go +++ b/cmd/drone-s3-sync/main.go @@ -6,7 +6,7 @@ import ( "github.com/joho/godotenv" "github.com/sirupsen/logrus" - "github.com/thegeeklab/drone-plugin-lib/urfave" + "github.com/thegeeklab/drone-plugin-lib/v2/urfave" "github.com/thegeeklab/drone-s3-sync/plugin" "github.com/urfave/cli/v2" ) @@ -31,7 +31,7 @@ func main() { Name: "drone-s3-sync", Usage: "synchronize a directory with an S3 bucket", Version: BuildVersion, - Flags: append(settingsFlags(settings, "Plugin Flags"), urfave.Flags()...), + Flags: append(settingsFlags(settings, urfave.FlagsPluginCategory), urfave.Flags()...), Action: run(settings), } diff --git a/go.mod b/go.mod index bd8ec3b..ffd8c64 100644 --- a/go.mod +++ b/go.mod @@ -7,16 +7,16 @@ require ( github.com/joho/godotenv v1.4.0 github.com/ryanuber/go-glob v1.0.0 github.com/sirupsen/logrus v1.8.1 - github.com/thegeeklab/drone-plugin-lib v1.0.0 - github.com/urfave/cli/v2 v2.8.0 + github.com/thegeeklab/drone-plugin-lib/v2 v2.0.0 + github.com/urfave/cli/v2 v2.8.1 ) require ( - github.com/antzucaro/matchr v0.0.0-20210222213004-b04723ef80f0 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/stretchr/testify v1.4.0 // indirect + github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect ) diff --git a/go.sum b/go.sum index 6161286..de7f02c 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,3 @@ -github.com/antzucaro/matchr v0.0.0-20210222213004-b04723ef80f0 h1:R/qAiUxFT3mNgQaNqJe0IVznjKRNm23ohAIh9lgtlzc= -github.com/antzucaro/matchr v0.0.0-20210222213004-b04723ef80f0/go.mod h1:v3ZDlfVAL1OrkKHbGSFFK60k0/7hruHPDq2XMs9Gu6U= github.com/aws/aws-sdk-go v1.44.20 h1:nllTRN24EfhDSeKsNbIc6HoC8Ogd2NCJTRB8l84kDlM= github.com/aws/aws-sdk-go v1.44.20/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= @@ -26,10 +24,12 @@ github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/thegeeklab/drone-plugin-lib v1.0.0 h1:PQeLnJa0q988rODYod/XtDy/f0cHHUhOA2Y8m5XRW4g= -github.com/thegeeklab/drone-plugin-lib v1.0.0/go.mod h1:XAlZDTSNNJogOH1+nS5u0notdj5dO/gtKnU7guzE95g= -github.com/urfave/cli/v2 v2.8.0 h1:EZsAB20oRW4nHcB99TTL6PrXpBGIEujMEKdjwruY9KQ= -github.com/urfave/cli/v2 v2.8.0/go.mod h1:TYFbtzt/azQoJOrGH5mDfZtS0jIkl/OeFwlRWPR9KRM= +github.com/thegeeklab/drone-plugin-lib/v2 v2.0.0 h1:ejM1fIkGhn9sy7HTidRiQhZJuEfUNF6sO9ko090PYvM= +github.com/thegeeklab/drone-plugin-lib/v2 v2.0.0/go.mod h1:cXNc+dmGLA748rAnXVBsTFG1UO+A/0XlV5jUEf/ahgk= +github.com/urfave/cli/v2 v2.8.1 h1:CGuYNZF9IKZY/rfBe3lJpccSoIY1ytfvmgQT90cNOl4= +github.com/urfave/cli/v2 v2.8.1/go.mod h1:Z41J9TPoffeoqP0Iza0YbAhGvymRdZAd2uPmZ5JxRdY= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= +github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 h1:HVyaeDAYux4pnY+D/SiwmLOR36ewZ4iGQIIrtnuCjFA= golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= diff --git a/plugin/plugin.go b/plugin/plugin.go index 4d16e7f..65eada6 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -1,7 +1,7 @@ package plugin import ( - "github.com/thegeeklab/drone-plugin-lib/drone" + "github.com/thegeeklab/drone-plugin-lib/v2/drone" ) // Plugin implements drone.Plugin to provide the plugin implementation.