etcd: works for clean build

This commit is contained in:
Andrea Brancaleoni 2017-05-03 15:17:41 +02:00
parent b422fb3ba1
commit 293764bf4f
1 changed files with 9 additions and 6 deletions

View File

@ -15,14 +15,17 @@ conf_files="/etc/sv/etcd/conf"
system_accounts="etcd"
make_dirs="/var/lib/etcd 0755 etcd etcd"
broken="https://build.voidlinux.eu/builders/armv7l-musl_builder/builds/2422/steps/shell_3/logs/stdio"
do_build() {
if [[ "${go_get}" != "yes" ]]; then
local path="${GOPATH}/src/${go_import_path}"
mkdir -p "$(dirname ${path})"
ln -fs $PWD "${path}"
fi
pre_build() {
glide install
}
post_build() {
go get -x ${go_import_path}/etcdctl
go_package=${go_package:-$go_import_path}
go get -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_package}
go get -x -tags "${go_build_tags}" -ldflags "${go_ldflags}" ${go_import_path}/etcdctl
}
post_install() {