You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by el...@apache.org on 2018/04/03 16:15:36 UTC
[incubator-trafficcontrol] 02/02: Add TO build go get for golang x
libs
This is an automated email from the ASF dual-hosted git repository.
elsloo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit 55e8c39184582d9dce3c5c416cc255ff218a178e
Author: Robert Butts <ro...@apache.org>
AuthorDate: Tue Apr 3 10:13:35 2018 -0600
Add TO build go get for golang x libs
---
traffic_ops/build/traffic_ops.spec | 1 +
traffic_stats/build/traffic_stats.spec | 1 +
2 files changed, 2 insertions(+)
diff --git a/traffic_ops/build/traffic_ops.spec b/traffic_ops/build/traffic_ops.spec
index ded298d..4cac1de 100644
--- a/traffic_ops/build/traffic_ops.spec
+++ b/traffic_ops/build/traffic_ops.spec
@@ -104,6 +104,7 @@ Built: %(date) by %{getenv: USER}
#echo "go getting at $(pwd)" && \
#go get -d -v && \
echo "go building at $(pwd)" && \
+ go get -v &&\
go build -ldflags "-X main.version=traffic_ops-%{version}-%{release} -B 0x`git rev-parse HEAD`" \
) || { echo "Could not build go program at $(pwd): $!"; exit 1; }
diff --git a/traffic_stats/build/traffic_stats.spec b/traffic_stats/build/traffic_stats.spec
index a20e032..3bc7e9c 100644
--- a/traffic_stats/build/traffic_stats.spec
+++ b/traffic_stats/build/traffic_stats.spec
@@ -82,6 +82,7 @@ oldpwd=$(pwd)
cd "$godir" && \
cp -L -r "$TC_DIR"/traffic_stats/* . && \
build_dependencies traffic_stats && \
+ go get -v && \
go install -v \
) || { echo "Could not build go program at $(pwd): $!"; exit 1; }
--
To stop receiving notification emails like this one, please contact
elsloo@apache.org.