updatebom.sh 466 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. set -e
  3. if ! [[ "$0" =~ scripts/updatebom.sh ]]; then
  4. echo "must be run from repository root"
  5. exit 255
  6. fi
  7. echo "installing 'bill-of-materials.json'"
  8. go get -v -u github.com/coreos/license-bill-of-materials
  9. echo "generating bill-of-materials.json"
  10. license-bill-of-materials \
  11. --override-file ./bill-of-materials.override.json \
  12. go.etcd.io/etcd go.etcd.io/etcd/etcdctl > bill-of-materials.json
  13. echo "generated bill-of-materials.json"