1 Star 0 Fork 0

sysdl132/snapd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
get-deps.sh 843 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh
set -e
if [ "$GOPATH" = "" ]; then
tmpdir=$(mktemp -d)
export GOPATH=$tmpdir
# shellcheck disable=SC2064
trap "rm -rf $tmpdir" EXIT
mkdir -p "$tmpdir/src/github.com/snapcore/"
ln -s "$(pwd)" "$tmpdir/src/github.com/snapcore/snapd"
cd "$tmpdir/src/github.com/snapcore/snapd"
fi
if ! command -v govendor >/dev/null;then
export PATH="$PATH:${GOPATH%%:*}/bin"
if ! command -v govendor >/dev/null;then
echo Installing govendor
go get -u github.com/kardianos/govendor
fi
fi
echo Obtaining dependencies
govendor sync
if [ "$1" != "--skip-unused-check" ]; then
unused="$(govendor list +unused)"
if [ "$unused" != "" ]; then
echo "Found unused ./vendor packages:"
echo "$unused"
echo "Please fix via 'govendor remove +unused'"
exit 1
fi
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sysdl132/snapd.git
git@gitee.com:sysdl132/snapd.git
sysdl132
snapd
snapd
latest

搜索帮助

0d507c66 1850385 C8b1a773 1850385