Skip to content

Commit

Permalink
Add vendor.conf (skipping unused deps)
Browse files Browse the repository at this point in the history
This converts the vendor/manifest JSON to a vendor.conf, to be used
with vndr (for now, avoiding adding a go.mod and using go mod vendor)

Note that the vendored version of upstream is missing commit 5793aa6
however, go-openapi/jsonpointer#4 has this change, so we can possibly forward to a newer version.

    WARNING: package github.com/armon/consul-api is unused, consider removing it from vendor.conf
    WARNING: package github.com/coreos/go-etcd is unused, consider removing it from vendor.conf
    WARNING: package github.com/naoina/denco is unused, consider removing it from vendor.conf
    WARNING: package github.com/opennota/urlesc is unused, consider removing it from vendor.conf
    WARNING: package github.com/ugorji/go is unused, consider removing it from vendor.conf
    WARNING: package github.com/willf/bitset is unused, consider removing it from vendor.conf
    WARNING: package github.com/xordataexchange/crypt is unused, consider removing it from vendor.conf

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jul 3, 2021
1 parent c56166c commit 5afb6e7
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 8 deletions.
23 changes: 15 additions & 8 deletions hack/update-vendor.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
#!/bin/zsh
#!/bin/sh

# go to project root
cd `git rev-parse --show-toplevel`
# This file is just wrapper around vndr (github.com/LK4D4/vndr) tool.
# For updating dependencies you should change `vendor.conf` file in root of the
# project. Please refer to https://github.com/LK4D4/vndr/blob/master/README.md for
# vndr usage.

gvt update --all
set -e

# not interested in the test files thank you.
rm -rf vendor/**/*_test.go
if ! hash vndr; then
echo "Please install vndr with \"go get github.com/LK4D4/vndr\" and put it in your \$GOPATH"
exit 1
fi

# remove some items that are problematic for a continuous build and not actually in use
rm -rf vendor/github.com/tylerb/graceful/tests
if [ $# -eq 0 ] || [ "$1" != "github.com/go-openapi/spec" ] && [ "$1" != "github.com/go-openapi/jsonpointer" ] ; then
# github.com/go-openapi/spec vendor has local changes, see f6063789
# github.com/go-openapi/jsonpointer vendor has local changes, see 5793aa66
vndr -whitelist=^github.com/go-openapi/spec -whitelist=^github.com/go-openapi/jsonpointer "$@"
fi
46 changes: 46 additions & 0 deletions vendor.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
github.com/PuerkitoBio/purell 8a290539e2e8629dbc4e6bad948158f790ec31f4
github.com/PuerkitoBio/urlesc 5bd2802263f21d8788851d5305584c82a5c75d7e
github.com/asaskevich/govalidator 7b3beb6df3c42abd3509abfc3bcacc0fbfb7c877
github.com/davecgh/go-spew 6d212800a42e8ab5c146b8ace3490ee17e5225f9
github.com/fsnotify/fsnotify bd2828f9f176e52d7222e565abb2d338d3f3c103
github.com/go-openapi/analysis 7222828b8ce19afee3c595aef6643b9e42150120
github.com/go-openapi/errors 4178436c9f2430cdd945c50301cfb61563b56573
github.com/go-openapi/inflect b1f6470ffb9c552dc105dd869f16e36ba86ba7d0
# github.com/go-openapi/jsonpointer vendor has local changes, see 5793aa66
# github.com/go-openapi/jsonpointer 46af16f9f7b149af66e5d1bd010e3574dc06de98 # this is missing https://github.com/kolyshkin/go-swagger/commit/5793aa66d4b4112c2602c716516e24710e4adbb5
github.com/go-openapi/jsonreference 13c6e3589ad90f49bd3e3bbe2c2cb3d7a4142272
github.com/go-openapi/loads 9168874c33ac10e241ee7767ed9f5d209c2a5ab0
github.com/go-openapi/runtime 2faaf90bf67e0616db00094f2141f99b00a9ebc2
# contains modified code; see f6063789
# github.com/go-openapi/spec 8f2b3d0e3aa15100eea0ab61dc6fa02f00f5e713
github.com/go-openapi/strfmt d65c7fdb29eca313476e529628176fe17e58c488
github.com/go-openapi/swag 3b6d86cd965820f968760d5d419cb4add096bdd7
github.com/go-openapi/validate 027696d4b54399770f1cdcc6c6daa56975f9e14e
github.com/go-swagger/scan-repo-boundary 196ec52cfa1c96b45dd793dfa0fa3f8877b299da
github.com/gorilla/context 08b5f424b9271eedf6f9f0ce86cb9396ed337a42
github.com/gorilla/handlers a5775781a543af3c6b9f5baf10995e4d14168950
github.com/hashicorp/hcl 99ce73d4fe576449f7a689d4fc2b2ad09a86bdaa
github.com/jessevdk/go-flags 4cc2832a6e6d1d3b815e2b9d544b2a4dfb3ce8fa
github.com/kr/fs 2788f0dbd16903de03cb8186e5c7d97b69ad387b
github.com/magiconair/properties 0723e352fa358f9322c938cc2dadda874e9151a9
github.com/mailru/easyjson 9dc3521db3580379d6cc493938ef9d2e9782ee7b
github.com/mitchellh/mapstructure f3009df150dadf309fdee4a54ed65c124afad715
github.com/pelletier/go-buffruneio df1e16fde7fc330a0ca68167c23bf7ed6ac31d6d
github.com/pelletier/go-toml 45932ad32dfdd20826f5671da37a5f3ce9f26a8d
github.com/pkg/errors 839d9e913e063e28dfd0e6c7b7512793e0a48be9
github.com/pkg/sftp 4d0e916071f68db74f8a73926335f809396d6b42
github.com/pmezard/go-difflib 792786c7400a136282c1664665ae0a8db921c6c2
github.com/spf13/afero 52e4a6cfac46163658bd4f123c49b6ee7dc75f78
github.com/spf13/cast 2580bc98dc0e62908119e4737030cc2fdfc45e4c
github.com/spf13/jwalterweatherman 33c24e77fb80341fe7130ee7c594256ff08ccc46
github.com/spf13/pflag dabebe21bf790f782ea4c7bbd2efc430de182afd
github.com/spf13/viper 285f1510193473600929e1183915f6220fabab94
github.com/stretchr/testify 976c720a22c8eb4eb6a0b4348ad85ad12491a506
github.com/toqueteos/webbrowser 970743f85c21bbfe01b0b7464aff85669eb0eb46
github.com/tylerb/graceful 50a48b6e73fcc75b45e22c05b79629a67c79e938
golang.org/x/crypto 3c0d69f1777220f1a1d2ec373cb94a282f03eb42
golang.org/x/net c33d37840d93fc75251f49ab83c5fc8b2faea5e8
golang.org/x/sys c200b10b5d5e122be351b67af224adc6128af5bf
golang.org/x/text 5a42fa2464759cbb7ee0af9de00b54d69f09a29c
golang.org/x/tools c6efba04dd0d931bb11cd7f556285fa3c9305398
gopkg.in/yaml.v2 a5b47d31c556af34a302ce5d659e6fea44d90de0 # v2 branch

0 comments on commit 5afb6e7

Please sign in to comment.