diff options
-rw-r--r-- | community/govendor/APKBUILD (renamed from testing/govendor/APKBUILD) | 18 | ||||
-rw-r--r-- | community/govendor/verbose.patch | 52 |
2 files changed, 63 insertions, 7 deletions
diff --git a/testing/govendor/APKBUILD b/community/govendor/APKBUILD index 1cb56e77fa..3e4bbb8920 100644 --- a/testing/govendor/APKBUILD +++ b/community/govendor/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> -# Maintainer: +# Maintainer: Carlo Landmeter <clandmeter@gmail.com> pkgname=govendor pkgver=1.0.8 -pkgrel=0 +pkgrel=1 pkgdesc="Go vendor tool that works with the standard vendor file" url="https://github.com/kardianos/govendor" arch="all" @@ -11,7 +11,8 @@ depends="" makedepends="go" install="" subpackages="" -source="govendor-$pkgver.tar.gz::https://github.com/kardianos/govendor/archive/v$pkgver.tar.gz" +source="govendor-$pkgver.tar.gz::https://github.com/kardianos/govendor/archive/v$pkgver.tar.gz + verbose.patch" builddir="$srcdir/github.com/kardianos/$pkgname" @@ -24,13 +25,16 @@ prepare() { build() { cd "$builddir" export GOPATH="$startdir" - go build + go build -v } package() { install -Dm755 "$builddir"/govendor "$pkgdir"/usr/bin/govendor } -md5sums="a1803965b7f39f1ece9347c1c5cdb333 govendor-1.0.8.tar.gz" -sha256sums="7e887b84c7a9278473f39ae8a74440ffc17b329aa193e9304d170d458f8785c7 govendor-1.0.8.tar.gz" -sha512sums="ef9fd65507bef66a4b00ef77a288a2f0e8bf77c58dac1b90846705ac63b3fb6fad76adc88b95f36612d0cb3b27f75fa2e6554054456d8ef0bbb00726258ced3a govendor-1.0.8.tar.gz" +md5sums="a1803965b7f39f1ece9347c1c5cdb333 govendor-1.0.8.tar.gz +fc62e68115623ac50e6cff60ca73d5f2 verbose.patch" +sha256sums="7e887b84c7a9278473f39ae8a74440ffc17b329aa193e9304d170d458f8785c7 govendor-1.0.8.tar.gz +dc03d870fd2d61d98c2bdb1959c84bea6e1b589836218fd41a82b6a381e9e519 verbose.patch" +sha512sums="ef9fd65507bef66a4b00ef77a288a2f0e8bf77c58dac1b90846705ac63b3fb6fad76adc88b95f36612d0cb3b27f75fa2e6554054456d8ef0bbb00726258ced3a govendor-1.0.8.tar.gz +a0507c6fbdeed60ecc1f53579ff0d150392dadb9af6e6a968ced6b5bac41c42a39d7f805f935e5bdfa83df82f475a9b1dc4db22adc93406cd7bc942de09032bc verbose.patch" diff --git a/community/govendor/verbose.patch b/community/govendor/verbose.patch new file mode 100644 index 0000000000..ca8c9ccb94 --- /dev/null +++ b/community/govendor/verbose.patch @@ -0,0 +1,52 @@ +From d67fd7ee654b322fece97890c0237a3c86cd3260 Mon Sep 17 00:00:00 2001 +From: Stephen Shirley <kormat@gmail.com> +Date: Tue, 8 Nov 2016 09:27:43 +0100 +Subject: [PATCH 1/2] Add verbose flag to govendor sync + +--- + run/sync.go | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/run/sync.go b/run/sync.go +index c2c914b..96deb67 100644 +--- a/run/sync.go ++++ b/run/sync.go +@@ -16,6 +16,7 @@ func (r *runner) Sync(w io.Writer, subCmdArgs []string) (help.HelpMessage, error + flags := flag.NewFlagSet("sync", flag.ContinueOnError) + insecure := flags.Bool("insecure", false, "allow insecure network updates") + dryrun := flags.Bool("n", false, "dry run, print what would be done") ++ verbose := flags.Bool("v", false, "verbose output") + flags.SetOutput(nullWriter{}) + err := flags.Parse(subCmdArgs) + if err != nil { +@@ -26,7 +27,7 @@ func (r *runner) Sync(w io.Writer, subCmdArgs []string) (help.HelpMessage, error + return help.MsgSync, err + } + ctx.Insecure = *insecure +- if *dryrun { ++ if *dryrun || *verbose { + ctx.Logger = w + } + return help.MsgNone, ctx.Sync(*dryrun) + +From 58a1479d0ead5a3c66b126be84c2173bafe37a37 Mon Sep 17 00:00:00 2001 +From: Stephen Shirley <kormat@gmail.com> +Date: Tue, 8 Nov 2016 09:30:13 +0100 +Subject: [PATCH 2/2] Update help/text.go + +--- + help/text.go | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/help/text.go b/help/text.go +index ad416b6..dde6ffd 100644 +--- a/help/text.go ++++ b/help/text.go +@@ -136,6 +136,7 @@ var helpSync = `govendor sync + Options: + -n dry run, print out action only + -insecure allow downloading over insecure connection ++ -v verbose output + ` + + var helpStatus = `govendor status |