Simplify godep licenses logic

This code used to actually reach out to the internet to look for files.  This
is flaky, slow, and semantically WRONG.  The license that is upstream might
actually be different than what we have vendored.  Only look at local files.

This now passes back-to-back updates and verifies.
pull/6/head
Tim Hockin 2016-05-26 01:03:19 -07:00
parent 07d9dff83c
commit 847b56b253
4 changed files with 1246 additions and 7230 deletions

View File

@ -1,396 +0,0 @@
bitbucket.org/ww/goautoneg/master/LICENSE
bitbucket.org/ww/goautoneg/master/LICENSE.code
bitbucket.org/ww/goautoneg/master/LICENSE.txt
bitbucket.org/ww/goautoneg/master/LICENSE.md
raw.githubusercontent.com/appc/cni/master/NOTICE
raw.githubusercontent.com/appc/cni/master/NOTICE.txt
raw.githubusercontent.com/appc/cni/master/README
raw.githubusercontent.com/appc/cni/master/README.md
raw.githubusercontent.com/appc/spec/master/NOTICE
raw.githubusercontent.com/appc/spec/master/NOTICE.txt
raw.githubusercontent.com/appc/spec/master/README
raw.githubusercontent.com/appc/spec/master/README.md
raw.githubusercontent.com/armon/go-metrics/master/NOTICE
raw.githubusercontent.com/armon/go-metrics/master/NOTICE.txt
raw.githubusercontent.com/armon/go-metrics/master/README
raw.githubusercontent.com/armon/go-metrics/master/README.md
raw.githubusercontent.com/beorn7/perks/master/LICENSE.code
raw.githubusercontent.com/beorn7/perks/master/LICENSE.txt
raw.githubusercontent.com/beorn7/perks/master/LICENSE.md
raw.githubusercontent.com/beorn7/perks/master/NOTICE
raw.githubusercontent.com/beorn7/perks/master/NOTICE.txt
raw.githubusercontent.com/beorn7/perks/master/README
raw.githubusercontent.com/blang/semver/master/NOTICE
raw.githubusercontent.com/blang/semver/master/NOTICE.txt
raw.githubusercontent.com/blang/semver/master/README
raw.githubusercontent.com/blang/semver/master/README.md
raw.githubusercontent.com/boltdb/bolt/master/NOTICE
raw.githubusercontent.com/boltdb/bolt/master/NOTICE.txt
raw.githubusercontent.com/boltdb/bolt/master/README
raw.githubusercontent.com/boltdb/bolt/master/README.md
raw.githubusercontent.com/ClusterHQ/flocker-go/master/NOTICE
raw.githubusercontent.com/ClusterHQ/flocker-go/master/NOTICE.txt
raw.githubusercontent.com/ClusterHQ/flocker-go/master/README
raw.githubusercontent.com/ClusterHQ/flocker-go/master/README.md
raw.githubusercontent.com/codegangsta/negroni/master/NOTICE
raw.githubusercontent.com/codegangsta/negroni/master/NOTICE.txt
raw.githubusercontent.com/codegangsta/negroni/master/README
raw.githubusercontent.com/codegangsta/negroni/master/README.md
raw.githubusercontent.com/coreos/go-etcd/master/NOTICE
raw.githubusercontent.com/coreos/go-etcd/master/NOTICE.txt
raw.githubusercontent.com/coreos/go-etcd/master/README
raw.githubusercontent.com/coreos/go-etcd/master/README.md
raw.githubusercontent.com/coreos/go-semver/master/NOTICE
raw.githubusercontent.com/coreos/go-semver/master/NOTICE.txt
raw.githubusercontent.com/coreos/go-semver/master/README
raw.githubusercontent.com/coreos/go-semver/master/README.md
raw.githubusercontent.com/coreos/go-systemd/master/NOTICE
raw.githubusercontent.com/coreos/go-systemd/master/NOTICE.txt
raw.githubusercontent.com/coreos/go-systemd/master/README
raw.githubusercontent.com/coreos/go-systemd/master/README.md
raw.githubusercontent.com/coreos/rkt/master/NOTICE
raw.githubusercontent.com/coreos/rkt/master/NOTICE.txt
raw.githubusercontent.com/coreos/rkt/master/README
raw.githubusercontent.com/coreos/rkt/master/README.md
raw.githubusercontent.com/cpuguy83/go-md2man/master/NOTICE
raw.githubusercontent.com/cpuguy83/go-md2man/master/NOTICE.txt
raw.githubusercontent.com/cpuguy83/go-md2man/master/README
raw.githubusercontent.com/cpuguy83/go-md2man/master/README.md
raw.githubusercontent.com/davecgh/go-spew/master/NOTICE
raw.githubusercontent.com/davecgh/go-spew/master/NOTICE.txt
raw.githubusercontent.com/davecgh/go-spew/master/README
raw.githubusercontent.com/davecgh/go-spew/master/README.md
raw.githubusercontent.com/daviddengcn/go-colortext/master/LICENSE.code
raw.githubusercontent.com/daviddengcn/go-colortext/master/LICENSE.txt
raw.githubusercontent.com/daviddengcn/go-colortext/master/LICENSE.md
raw.githubusercontent.com/daviddengcn/go-colortext/master/NOTICE
raw.githubusercontent.com/daviddengcn/go-colortext/master/NOTICE.txt
raw.githubusercontent.com/daviddengcn/go-colortext/master/README
raw.githubusercontent.com/daviddengcn/go-colortext/master/README.md
raw.githubusercontent.com/dgrijalva/jwt-go/master/NOTICE
raw.githubusercontent.com/dgrijalva/jwt-go/master/NOTICE.txt
raw.githubusercontent.com/dgrijalva/jwt-go/master/README
raw.githubusercontent.com/dgrijalva/jwt-go/master/README.md
raw.githubusercontent.com/docker/distribution/master/NOTICE
raw.githubusercontent.com/docker/distribution/master/NOTICE.txt
raw.githubusercontent.com/docker/distribution/master/README
raw.githubusercontent.com/docker/distribution/master/README.md
raw.githubusercontent.com/docker/engine-api/master/NOTICE
raw.githubusercontent.com/docker/engine-api/master/NOTICE.txt
raw.githubusercontent.com/docker/engine-api/master/README
raw.githubusercontent.com/docker/engine-api/master/README.md
raw.githubusercontent.com/docker/go-connections/master/NOTICE
raw.githubusercontent.com/docker/go-connections/master/NOTICE.txt
raw.githubusercontent.com/docker/go-connections/master/README
raw.githubusercontent.com/docker/go-connections/master/README.md
raw.githubusercontent.com/elazarl/go-bindata-assetfs/master/NOTICE
raw.githubusercontent.com/elazarl/go-bindata-assetfs/master/NOTICE.txt
raw.githubusercontent.com/elazarl/go-bindata-assetfs/master/README
raw.githubusercontent.com/elazarl/go-bindata-assetfs/master/README.md
raw.githubusercontent.com/elazarl/goproxy/master/NOTICE
raw.githubusercontent.com/elazarl/goproxy/master/NOTICE.txt
raw.githubusercontent.com/elazarl/goproxy/master/README
raw.githubusercontent.com/elazarl/goproxy/master/README.md
raw.githubusercontent.com/emicklei/go-restful/master/NOTICE
raw.githubusercontent.com/emicklei/go-restful/master/NOTICE.txt
raw.githubusercontent.com/emicklei/go-restful/master/README
raw.githubusercontent.com/emicklei/go-restful/master/README.md
raw.githubusercontent.com/evanphx/json-patch/master/NOTICE
raw.githubusercontent.com/evanphx/json-patch/master/NOTICE.txt
raw.githubusercontent.com/evanphx/json-patch/master/README
raw.githubusercontent.com/evanphx/json-patch/master/README.md
raw.githubusercontent.com/garyburd/redigo/master/LICENSE.code
raw.githubusercontent.com/garyburd/redigo/master/LICENSE.txt
raw.githubusercontent.com/garyburd/redigo/master/LICENSE.md
raw.githubusercontent.com/garyburd/redigo/master/NOTICE
raw.githubusercontent.com/garyburd/redigo/master/NOTICE.txt
raw.githubusercontent.com/garyburd/redigo/master/README
raw.githubusercontent.com/garyburd/redigo/master/README.md
raw.githubusercontent.com/ghodss/yaml/master/NOTICE
raw.githubusercontent.com/ghodss/yaml/master/NOTICE.txt
raw.githubusercontent.com/ghodss/yaml/master/README
raw.githubusercontent.com/ghodss/yaml/master/README.md
raw.githubusercontent.com/go-ini/ini/master/NOTICE
raw.githubusercontent.com/go-ini/ini/master/NOTICE.txt
raw.githubusercontent.com/go-ini/ini/master/README
raw.githubusercontent.com/go-ini/ini/master/README.md
raw.githubusercontent.com/godbus/dbus/master/NOTICE
raw.githubusercontent.com/godbus/dbus/master/NOTICE.txt
raw.githubusercontent.com/godbus/dbus/master/README
raw.githubusercontent.com/godbus/dbus/master/README.md
raw.githubusercontent.com/gogo/protobuf/master/NOTICE
raw.githubusercontent.com/gogo/protobuf/master/NOTICE.txt
raw.githubusercontent.com/gogo/protobuf/master/README.md
raw.githubusercontent.com/golang/glog/master/NOTICE
raw.githubusercontent.com/golang/glog/master/NOTICE.txt
raw.githubusercontent.com/golang/glog/master/README
raw.githubusercontent.com/golang/glog/master/README.md
raw.githubusercontent.com/golang/groupcache/master/NOTICE
raw.githubusercontent.com/golang/groupcache/master/NOTICE.txt
raw.githubusercontent.com/golang/groupcache/master/README
raw.githubusercontent.com/golang/groupcache/master/README.md
raw.githubusercontent.com/golang/mock/master/NOTICE
raw.githubusercontent.com/golang/mock/master/NOTICE.txt
raw.githubusercontent.com/golang/mock/master/README
raw.githubusercontent.com/golang/mock/master/README.md
raw.githubusercontent.com/golang/protobuf/master/NOTICE
raw.githubusercontent.com/golang/protobuf/master/NOTICE.txt
raw.githubusercontent.com/golang/protobuf/master/README
raw.githubusercontent.com/google/btree/master/NOTICE
raw.githubusercontent.com/google/btree/master/NOTICE.txt
raw.githubusercontent.com/google/btree/master/README
raw.githubusercontent.com/google/btree/master/README.md
raw.githubusercontent.com/google/cadvisor/master/NOTICE
raw.githubusercontent.com/google/cadvisor/master/NOTICE.txt
raw.githubusercontent.com/google/cadvisor/master/README
raw.githubusercontent.com/google/cadvisor/master/README.md
raw.githubusercontent.com/google/gofuzz/master/NOTICE
raw.githubusercontent.com/google/gofuzz/master/NOTICE.txt
raw.githubusercontent.com/google/gofuzz/master/README
raw.githubusercontent.com/google/gofuzz/master/README.md
raw.githubusercontent.com/gorilla/context/master/NOTICE
raw.githubusercontent.com/gorilla/context/master/NOTICE.txt
raw.githubusercontent.com/gorilla/context/master/README
raw.githubusercontent.com/gorilla/context/master/README.md
raw.githubusercontent.com/gorilla/mux/master/NOTICE
raw.githubusercontent.com/gorilla/mux/master/NOTICE.txt
raw.githubusercontent.com/gorilla/mux/master/README
raw.githubusercontent.com/gorilla/mux/master/README.md
raw.githubusercontent.com/hashicorp/go-msgpack/master/NOTICE
raw.githubusercontent.com/hashicorp/go-msgpack/master/NOTICE.txt
raw.githubusercontent.com/hashicorp/go-msgpack/master/README
raw.githubusercontent.com/hashicorp/go-msgpack/master/README.md
raw.githubusercontent.com/hashicorp/golang-lru/master/NOTICE
raw.githubusercontent.com/hashicorp/golang-lru/master/NOTICE.txt
raw.githubusercontent.com/hashicorp/golang-lru/master/README
raw.githubusercontent.com/hashicorp/golang-lru/master/README.md
raw.githubusercontent.com/hashicorp/raft/master/NOTICE
raw.githubusercontent.com/hashicorp/raft/master/NOTICE.txt
raw.githubusercontent.com/hashicorp/raft/master/README
raw.githubusercontent.com/hashicorp/raft/master/README.md
raw.githubusercontent.com/hashicorp/raft-boltdb/master/NOTICE
raw.githubusercontent.com/hashicorp/raft-boltdb/master/NOTICE.txt
raw.githubusercontent.com/hashicorp/raft-boltdb/master/README
raw.githubusercontent.com/hashicorp/raft-boltdb/master/README.md
raw.githubusercontent.com/hawkular/hawkular-client-go/master/NOTICE
raw.githubusercontent.com/hawkular/hawkular-client-go/master/NOTICE.txt
raw.githubusercontent.com/hawkular/hawkular-client-go/master/README
raw.githubusercontent.com/hawkular/hawkular-client-go/master/README.md
raw.githubusercontent.com/imdario/mergo/master/NOTICE
raw.githubusercontent.com/imdario/mergo/master/NOTICE.txt
raw.githubusercontent.com/imdario/mergo/master/README
raw.githubusercontent.com/imdario/mergo/master/README.md
raw.githubusercontent.com/inconshreveable/mousetrap/master/NOTICE
raw.githubusercontent.com/inconshreveable/mousetrap/master/NOTICE.txt
raw.githubusercontent.com/inconshreveable/mousetrap/master/README
raw.githubusercontent.com/inconshreveable/mousetrap/master/README.md
raw.githubusercontent.com/influxdb/influxdb/master/NOTICE
raw.githubusercontent.com/influxdb/influxdb/master/NOTICE.txt
raw.githubusercontent.com/influxdb/influxdb/master/README
raw.githubusercontent.com/influxdb/influxdb/master/README.md
raw.githubusercontent.com/jmespath/go-jmespath/master/NOTICE
raw.githubusercontent.com/jmespath/go-jmespath/master/NOTICE.txt
raw.githubusercontent.com/jmespath/go-jmespath/master/README
raw.githubusercontent.com/jmespath/go-jmespath/master/README.md
raw.githubusercontent.com/jonboulle/clockwork/master/NOTICE
raw.githubusercontent.com/jonboulle/clockwork/master/NOTICE.txt
raw.githubusercontent.com/jonboulle/clockwork/master/README
raw.githubusercontent.com/jonboulle/clockwork/master/README.md
raw.githubusercontent.com/juju/ratelimit/master/NOTICE
raw.githubusercontent.com/juju/ratelimit/master/NOTICE.txt
raw.githubusercontent.com/juju/ratelimit/master/README
raw.githubusercontent.com/juju/ratelimit/master/README.md
raw.githubusercontent.com/kardianos/osext/master/NOTICE
raw.githubusercontent.com/kardianos/osext/master/NOTICE.txt
raw.githubusercontent.com/kardianos/osext/master/README
raw.githubusercontent.com/kardianos/osext/master/README.md
raw.githubusercontent.com/kr/pty/master/NOTICE
raw.githubusercontent.com/kr/pty/master/NOTICE.txt
raw.githubusercontent.com/kr/pty/master/README
raw.githubusercontent.com/kr/pty/master/README.md
raw.githubusercontent.com/matttproud/golang_protobuf_extensions/master/NOTICE.txt
raw.githubusercontent.com/matttproud/golang_protobuf_extensions/master/README
raw.githubusercontent.com/matttproud/golang_protobuf_extensions/master/README.md
raw.githubusercontent.com/Microsoft/go-winio/master/NOTICE
raw.githubusercontent.com/Microsoft/go-winio/master/NOTICE.txt
raw.githubusercontent.com/Microsoft/go-winio/master/README
raw.githubusercontent.com/Microsoft/go-winio/master/README.md
raw.githubusercontent.com/miekg/dns/master/NOTICE
raw.githubusercontent.com/miekg/dns/master/NOTICE.txt
raw.githubusercontent.com/miekg/dns/master/README
raw.githubusercontent.com/miekg/dns/master/README.md
raw.githubusercontent.com/mistifyio/go-zfs/master/NOTICE
raw.githubusercontent.com/mistifyio/go-zfs/master/NOTICE.txt
raw.githubusercontent.com/mistifyio/go-zfs/master/README
raw.githubusercontent.com/mistifyio/go-zfs/master/README.md
raw.githubusercontent.com/mitchellh/mapstructure/master/NOTICE
raw.githubusercontent.com/mitchellh/mapstructure/master/NOTICE.txt
raw.githubusercontent.com/mitchellh/mapstructure/master/README
raw.githubusercontent.com/mitchellh/mapstructure/master/README.md
raw.githubusercontent.com/mvdan/xurls/master/NOTICE
raw.githubusercontent.com/mvdan/xurls/master/NOTICE.txt
raw.githubusercontent.com/mvdan/xurls/master/README
raw.githubusercontent.com/mvdan/xurls/master/README.md
raw.githubusercontent.com/mxk/go-flowrate/master/NOTICE
raw.githubusercontent.com/mxk/go-flowrate/master/NOTICE.txt
raw.githubusercontent.com/mxk/go-flowrate/master/README
raw.githubusercontent.com/mxk/go-flowrate/master/README.md
raw.githubusercontent.com/onsi/ginkgo/master/NOTICE
raw.githubusercontent.com/onsi/ginkgo/master/NOTICE.txt
raw.githubusercontent.com/onsi/ginkgo/master/README
raw.githubusercontent.com/onsi/ginkgo/master/README.md
raw.githubusercontent.com/onsi/gomega/master/NOTICE
raw.githubusercontent.com/onsi/gomega/master/NOTICE.txt
raw.githubusercontent.com/onsi/gomega/master/README
raw.githubusercontent.com/onsi/gomega/master/README.md
raw.githubusercontent.com/pborman/uuid/master/NOTICE
raw.githubusercontent.com/pborman/uuid/master/NOTICE.txt
raw.githubusercontent.com/pborman/uuid/master/README
raw.githubusercontent.com/pborman/uuid/master/README.md
raw.githubusercontent.com/pmezard/go-difflib/master/NOTICE
raw.githubusercontent.com/pmezard/go-difflib/master/NOTICE.txt
raw.githubusercontent.com/pmezard/go-difflib/master/README
raw.githubusercontent.com/pmezard/go-difflib/master/README.md
raw.githubusercontent.com/prometheus/common/master/LICENSE.code
raw.githubusercontent.com/prometheus/common/master/LICENSE.txt
raw.githubusercontent.com/prometheus/common/master/LICENSE.md
raw.githubusercontent.com/prometheus/common/master/NOTICE.txt
raw.githubusercontent.com/prometheus/common/master/README
raw.githubusercontent.com/prometheus/common/master/README.md
raw.githubusercontent.com/rackspace/gophercloud/master/NOTICE
raw.githubusercontent.com/rackspace/gophercloud/master/NOTICE.txt
raw.githubusercontent.com/rackspace/gophercloud/master/README
raw.githubusercontent.com/rackspace/gophercloud/master/README.md
raw.githubusercontent.com/robfig/cron/master/NOTICE
raw.githubusercontent.com/robfig/cron/master/NOTICE.txt
raw.githubusercontent.com/robfig/cron/master/README
raw.githubusercontent.com/robfig/cron/master/README.md
raw.githubusercontent.com/russross/blackfriday/master/NOTICE
raw.githubusercontent.com/russross/blackfriday/master/NOTICE.txt
raw.githubusercontent.com/russross/blackfriday/master/README
raw.githubusercontent.com/russross/blackfriday/master/README.md
raw.githubusercontent.com/samuel/go-zookeeper/master/NOTICE
raw.githubusercontent.com/samuel/go-zookeeper/master/NOTICE.txt
raw.githubusercontent.com/samuel/go-zookeeper/master/README
raw.githubusercontent.com/samuel/go-zookeeper/master/README.md
raw.githubusercontent.com/seccomp/libseccomp-golang/master/NOTICE
raw.githubusercontent.com/seccomp/libseccomp-golang/master/NOTICE.txt
raw.githubusercontent.com/seccomp/libseccomp-golang/master/README
raw.githubusercontent.com/seccomp/libseccomp-golang/master/README.md
raw.githubusercontent.com/shurcooL/sanitized_anchor_name/master/LICENSE.code
raw.githubusercontent.com/shurcooL/sanitized_anchor_name/master/LICENSE.txt
raw.githubusercontent.com/shurcooL/sanitized_anchor_name/master/LICENSE.md
raw.githubusercontent.com/shurcooL/sanitized_anchor_name/master/NOTICE
raw.githubusercontent.com/shurcooL/sanitized_anchor_name/master/NOTICE.txt
raw.githubusercontent.com/shurcooL/sanitized_anchor_name/master/README
raw.githubusercontent.com/shurcooL/sanitized_anchor_name/master/README.md
raw.githubusercontent.com/Sirupsen/logrus/master/NOTICE
raw.githubusercontent.com/Sirupsen/logrus/master/NOTICE.txt
raw.githubusercontent.com/Sirupsen/logrus/master/README
raw.githubusercontent.com/Sirupsen/logrus/master/README.md
raw.githubusercontent.com/skynetservices/skydns/master/NOTICE
raw.githubusercontent.com/skynetservices/skydns/master/NOTICE.txt
raw.githubusercontent.com/skynetservices/skydns/master/README
raw.githubusercontent.com/skynetservices/skydns/master/README.md
raw.githubusercontent.com/spf13/cobra/master/NOTICE
raw.githubusercontent.com/spf13/cobra/master/NOTICE.txt
raw.githubusercontent.com/spf13/cobra/master/README
raw.githubusercontent.com/spf13/cobra/master/README.md
raw.githubusercontent.com/spf13/pflag/master/NOTICE
raw.githubusercontent.com/spf13/pflag/master/NOTICE.txt
raw.githubusercontent.com/spf13/pflag/master/README
raw.githubusercontent.com/spf13/pflag/master/README.md
raw.githubusercontent.com/stretchr/objx/master/LICENSE
raw.githubusercontent.com/stretchr/objx/master/LICENSE.code
raw.githubusercontent.com/stretchr/objx/master/LICENSE.txt
raw.githubusercontent.com/stretchr/objx/master/NOTICE
raw.githubusercontent.com/stretchr/objx/master/NOTICE.txt
raw.githubusercontent.com/stretchr/objx/master/README
raw.githubusercontent.com/stretchr/objx/master/README.md
raw.githubusercontent.com/stretchr/testify/master/NOTICE
raw.githubusercontent.com/stretchr/testify/master/NOTICE.txt
raw.githubusercontent.com/stretchr/testify/master/README
raw.githubusercontent.com/syndtr/gocapability/master/NOTICE
raw.githubusercontent.com/syndtr/gocapability/master/NOTICE.txt
raw.githubusercontent.com/syndtr/gocapability/master/README
raw.githubusercontent.com/syndtr/gocapability/master/README.md
raw.githubusercontent.com/ugorji/go/master/NOTICE
raw.githubusercontent.com/ugorji/go/master/NOTICE.txt
raw.githubusercontent.com/ugorji/go/master/README
raw.githubusercontent.com/ugorji/go/master/README.md
raw.githubusercontent.com/vishvananda/netlink/master/NOTICE
raw.githubusercontent.com/vishvananda/netlink/master/NOTICE.txt
raw.githubusercontent.com/vishvananda/netlink/master/README
raw.githubusercontent.com/vishvananda/netlink/master/README.md
raw.githubusercontent.com/vmware/govmomi/master/NOTICE
raw.githubusercontent.com/vmware/govmomi/master/NOTICE.txt
raw.githubusercontent.com/vmware/govmomi/master/README
raw.githubusercontent.com/vmware/govmomi/master/README.md
raw.githubusercontent.com/xiang90/probing/master/NOTICE
raw.githubusercontent.com/xiang90/probing/master/NOTICE.txt
raw.githubusercontent.com/xiang90/probing/master/README
raw.githubusercontent.com/xiang90/probing/master/README.md
raw.githubusercontent.com/xyproto/simpleredis/master/NOTICE
raw.githubusercontent.com/xyproto/simpleredis/master/NOTICE.txt
raw.githubusercontent.com/xyproto/simpleredis/master/README
raw.githubusercontent.com/xyproto/simpleredis/master/README.md
go4.org/errorutil/master/LICENSE
go4.org/errorutil/master/LICENSE.code
go4.org/errorutil/master/LICENSE.txt
go4.org/errorutil/master/LICENSE.md
go4.org/errorutil/master/NOTICE
go4.org/errorutil/master/NOTICE.txt
go4.org/errorutil/master/README
go4.org/errorutil/master/README.md
golang.org/x/crypto/master/NOTICE
golang.org/x/crypto/master/NOTICE.txt
golang.org/x/crypto/master/README
golang.org/x/crypto/master/README.md
golang.org/x/exp/master/NOTICE
golang.org/x/exp/master/NOTICE.txt
golang.org/x/exp/master/README
golang.org/x/exp/master/README.md
golang.org/x/net/master/NOTICE
golang.org/x/net/master/NOTICE.txt
golang.org/x/net/master/README
golang.org/x/net/master/README.md
golang.org/x/oauth2/master/NOTICE
golang.org/x/oauth2/master/NOTICE.txt
golang.org/x/oauth2/master/README
golang.org/x/oauth2/master/README.md
golang.org/x/sys/master/NOTICE
golang.org/x/sys/master/NOTICE.txt
golang.org/x/sys/master/README
golang.org/x/sys/master/README.md
google.golang.org/api/master/NOTICE
google.golang.org/api/master/NOTICE.txt
google.golang.org/api/master/README
google.golang.org/api/master/README.md
google.golang.org/cloud/master/NOTICE
google.golang.org/cloud/master/NOTICE.txt
google.golang.org/cloud/master/README
google.golang.org/cloud/master/README.md
google.golang.org/grpc/master/NOTICE
google.golang.org/grpc/master/NOTICE.txt
google.golang.org/grpc/master/README
google.golang.org/grpc/master/README.md
gopkg.in/gcfg.v1/master/NOTICE
gopkg.in/gcfg.v1/master/NOTICE.txt
gopkg.in/gcfg.v1/master/README
gopkg.in/gcfg.v1/master/README.md
gopkg.in/inf.v0/master/NOTICE
gopkg.in/inf.v0/master/NOTICE.txt
gopkg.in/inf.v0/master/README
gopkg.in/inf.v0/master/README.md
gopkg.in/natefinch/master/NOTICE
gopkg.in/natefinch/master/NOTICE.txt
gopkg.in/natefinch/master/README
gopkg.in/natefinch/master/README.md
gopkg.in/yaml.v2/master/NOTICE
gopkg.in/yaml.v2/master/NOTICE.txt
gopkg.in/yaml.v2/master/README
gopkg.in/yaml.v2/master/README.md
k8s.io/heapster/master/NOTICE
k8s.io/heapster/master/NOTICE.txt
k8s.io/heapster/master/README
k8s.io/heapster/master/README.md

7952
Godeps/LICENSES generated

File diff suppressed because it is too large Load Diff

View File

@ -33,35 +33,6 @@ set -o pipefail
export LANG=C
export LC_ALL=C
###############################################################################
# Manage the state of LICENSE/COPYRIGHT files
# Default operation is to check to see if a file is in the state file.
#
# @optparam -a Add the file to the state file
# @param file The file to check or add
# @return 1 when no file is found in state file
#
file_state () {
local add=0
case "$1" in
-a) add=1;shift ;;
esac
local file=$1
# If we're ignoring state, then return 1
((CREATE_MISSING)) && return 1
# initialize if step 1
if ((add)); then
echo "${file}" >> ${GODEPS_STATE}
return 0
fi
# Get return code from grep itself
# Redirect stderr so that a missing state file returns 1 quietly
egrep -wq "^${file}$" ${GODEPS_STATE} 2>/dev/null
}
###############################################################################
# Process package content
#
@ -74,27 +45,23 @@ process_content () {
local package_root
local ensure_pattern
local package_root_url
local dir_root
local find_maxdepth
local find_names
local -a local_files=()
local -a remote_files=()
# Necessary to expand {}
case ${type} in
LICENSE) remote_files=(LICENSE{,.code,.txt,.md})
find_names=(-iname 'licen[sc]e*')
LICENSE) find_names=(-iname 'licen[sc]e*')
find_maxdepth=1
# Sadly inconsistent in the wild, but mostly license files
# containing copyrights, but no readme/notice files containing
# licenses (except to "see license file")
ensure_pattern="License|Copyright"
;;
# We search readmes for copyrights and this includes notice files as well
# We search READMEs for copyrights and this includes notice files as well
# Look in as many places as we find files matching
COPYRIGHT) remote_files=(NOTICE{,.txt} README{,.md})
find_names=(-iname 'notice*' -o -iname 'readme*')
COPYRIGHT) find_names=(-iname 'notice*' -o -iname 'readme*')
find_maxdepth=3
ensure_pattern="Copyright"
;;
@ -109,10 +76,8 @@ process_content () {
package_root=$(echo ${package} |awk -F/ '{print $1"/"$2 }')
;;
esac
# if github.com, rewrite package root url, otherwise take as is
package_root_url="${package_root/github.com/raw.githubusercontent.com}"
# Find LOCAL files first - only root and package level
# Find files - only root and package level
local_files=($(
for dir_root in ${package} ${package_root}; do
[[ -d ${DEPS_DIR}/${dir_root} ]] || continue
@ -126,33 +91,12 @@ process_content () {
local index
local f
index="${package}-${type}"
FILE_CONTENT[${index}]=""
for f in ${local_files[@]-}; do
# Find some copyright info in any file and break
if egrep -wq "${ensure_pattern}" "${f}"; then
FILE_CONTENT[${index}]=$(cat "${f}")
break
fi
done
if [[ -z "${FILE_CONTENT[${index}]-}" ]]; then
# When nothing is set at the package level, try package_root
FILE_CONTENT[${index}]="${FILE_CONTENT[${package_root}-${type}]-}"
fi
if [[ -z "${FILE_CONTENT[${index}]-}" ]]; then
# Last ditch attempt - see if we can get it from version control
for f in ${remote_files[@]}; do
file_state "${package_root_url}/master/${f}" && continue
if ! FILE_CONTENT[${index}]="$(\
curl --fail --retry 10 -s \
https://${package_root_url}/master/${f})" || \
! $(echo "${FILE_CONTENT[${index}]-}" |\
egrep -qw "${ensure_pattern}") ||
[[ "${FILE_CONTENT[${index}]-}" =~ \<\ *html ]] ; then
((CREATE_MISSING)) || file_state -a "${package_root_url}/master/${f}"
continue
if [[ -z "${CONTENT[${index}]-}" ]]; then
for f in ${local_files[@]-}; do
# Find some copyright info in any file and break
if egrep -wq "${ensure_pattern}" "${f}"; then
CONTENT[${index}]="${f}"
break
fi
done
fi
@ -165,23 +109,13 @@ process_content () {
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"
# This variable can be injected, as in the verify script.
LICENSE_ROOT="${LICENSE_ROOT:-${KUBE_ROOT}}"
cd "${LICENSE_ROOT}"
# If CREATE_MISSING=1, the state file is ignored
CREATE_MISSING=0
if [[ ${1-} == "--create-missing" ]]; then
CREATE_MISSING=1
shift
fi
# Place to store the state of not-found files so we don't curl too much
GODEPS_STATE="Godeps/.license_file_state"
GODEPS_LICENSE_FILE=${1:-"Godeps/LICENSES"}
GODEPS_LICENSE_FILE="Godeps/LICENSES"
DEPS_DIR="vendor"
declare -Ag FILE_CONTENT
declare -Ag CONTENT
# Put the K8S LICENSE on top
(
@ -189,6 +123,9 @@ echo "==========================================================================
echo "= Kubernetes licensed under: ="
echo
cat ${LICENSE_ROOT}/LICENSE
echo
echo "= LICENSE $(cat ${LICENSE_ROOT}/LICENSE | md5sum)"
echo "================================================================================"
) > ${GODEPS_LICENSE_FILE}
# Loop through every package in Godeps.json
@ -204,16 +141,21 @@ for PACKAGE in $(cat Godeps/Godeps.json | \
echo "= ${DEPS_DIR}/${PACKAGE} licensed under: ="
echo
if [[ -z "${FILE_CONTENT[${PACKAGE}-LICENSE]-}" &&
-z "${FILE_CONTENT[${PACKAGE}-COPYRIGHT]-}" ]]; then
echo "UNKNOWN"
else
if [[ -n "${FILE_CONTENT[${PACKAGE}-LICENSE]-}" ]]; then
echo "${FILE_CONTENT[${PACKAGE}-LICENSE]-}"
echo
fi
if [[ -n "${FILE_CONTENT[${PACKAGE}-COPYRIGHT]-}" ]]; then
echo "${FILE_CONTENT[${PACKAGE}-COPYRIGHT]-}" | sed -n '/Copyright /,$p'
fi
content=""
if [[ -n "${CONTENT[${PACKAGE}-LICENSE]-}" ]]; then
content="${CONTENT[${PACKAGE}-LICENSE]-}"
elif [[ -n "${CONTENT[${PACKAGE}-COPYRIGHT]-}" ]]; then
content="${CONTENT[${PACKAGE}-COPYRIGHT]-}"
fi
if [[ -z "${content}" ]]; then
echo "UNKNOWN"
content="/dev/null"
else
cat "${content}"
fi
echo
echo "= ${content} $(cat ${content} | md5sum)"
echo "================================================================================"
echo
done >> ${GODEPS_LICENSE_FILE}

View File

@ -32,9 +32,9 @@ fi
# to work with docker-machine on macs
mkdir -p "${KUBE_ROOT}/_tmp"
_tmpdir="$(mktemp -d "${KUBE_ROOT}/_tmp/kube-godep-licenses.XXXXXX")"
echo "Created workspace: ${_tmpdir}"
#echo "Created workspace: ${_tmpdir}"
function cleanup {
echo "Removing workspace: ${_tmpdir}"
#echo "Removing workspace: ${_tmpdir}"
rm -rf "${_tmpdir}"
}
trap cleanup EXIT
@ -48,7 +48,7 @@ LICENSE_ROOT="${_tmpdir}" "${KUBE_ROOT}/hack/update-godep-licenses.sh"
# Compare Godep Licenses
if ! _out="$(diff -Naupr ${KUBE_ROOT}/Godeps/LICENSES ${_tmpdir}/Godeps/LICENSES)"; then
echo "Your godep licenses file is out of date. Run hack/update-godep-licenses.sh --create-missing and commit the results."
echo "Your godep licenses file is out of date. Run hack/update-godep-licenses.sh and commit the results."
echo "${_out}"
exit 1
fi