File: glide-update

package info (click to toggle)
golang-github-appc-spec 0.8.11%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,112 kB
  • sloc: sh: 167; makefile: 12
file content (20 lines) | stat: -rwxr-xr-x 370 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -e

if ! [[ "$0" =~ "scripts/glide-update"  ]]; then
  echo "must be run from repository root"
  exit 255
fi

if [ ! $(command -v glide)  ]; then
  echo "glide: command not found"
  exit 255
fi

if [ ! $(command -v glide-vc)  ]; then
  echo "glide-vc: command not found"
  exit 255
fi

glide update --strip-vendor
glide-vc --only-code --no-tests