mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #7897 from gyuho/bom
scripts: add 'BOM' update script
This commit is contained in:
commit
01a985eda5
@ -1,4 +1,9 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"project": "bitbucket.org/ww/goautoneg",
|
||||||
|
"license": "BSD 3-clause \"New\" or \"Revised\" License",
|
||||||
|
"confidence": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"project": "github.com/beorn7/perks/quantile",
|
"project": "github.com/beorn7/perks/quantile",
|
||||||
"license": "MIT License",
|
"license": "MIT License",
|
||||||
@ -203,10 +208,5 @@
|
|||||||
"project": "gopkg.in/yaml.v2",
|
"project": "gopkg.in/yaml.v2",
|
||||||
"license": "Apache License 2.0 and MIT License",
|
"license": "Apache License 2.0 and MIT License",
|
||||||
"confidence": 1
|
"confidence": 1
|
||||||
},
|
|
||||||
{
|
|
||||||
"project": "bitbucket.org/ww/goautoneg",
|
|
||||||
"license": "BSD 3-clause \"New\" or \"Revised\" License",
|
|
||||||
"confidence": 1
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
28
scripts/updatebom.sh
Executable file
28
scripts/updatebom.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if ! [[ "$0" =~ "scripts/updatebom.sh" ]]; then
|
||||||
|
echo "must be run from repository root"
|
||||||
|
exit 255
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "installing 'bill-of-materials.json'"
|
||||||
|
go get -v -u github.com/coreos/license-bill-of-materials
|
||||||
|
|
||||||
|
echo "setting up GOPATH"
|
||||||
|
rm -rf ./gopath
|
||||||
|
mkdir ./gopath
|
||||||
|
mv ./cmd/vendor ./gopath/src
|
||||||
|
|
||||||
|
echo "generating bill-of-materials.json"
|
||||||
|
GOPATH=`pwd`/gopath license-bill-of-materials \
|
||||||
|
--override-file ./bill-of-materials.override.json \
|
||||||
|
github.com/coreos/etcd github.com/coreos/etcd/etcdctl > bill-of-materials.json
|
||||||
|
|
||||||
|
echo "reverting GOPATH,vendor"
|
||||||
|
mv ./gopath/src ./cmd/vendor
|
||||||
|
rm -rf ./gopath
|
||||||
|
|
||||||
|
echo "generated bill-of-materials.json"
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user