summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen, Chih-Chia <pigfoot@gmail.com>2022-03-16 19:46:53 +0800
committerChen, Chih-Chia <pigfoot@gmail.com>2022-03-16 19:46:53 +0800
commitc3a285614b0059707dfe40bbfadf700e89a5e55e (patch)
tree919d509443000e5fd2bb65a589809dd8a0e316e2
parentapply new go-module guideline (diff)
downloadpigfoot-c3a285614b0059707dfe40bbfadf700e89a5e55e.tar.gz
pigfoot-c3a285614b0059707dfe40bbfadf700e89a5e55e.tar.bz2
pigfoot-c3a285614b0059707dfe40bbfadf700e89a5e55e.zip
apply new go-module guideline
Signed-off-by: Chen, Chih-Chia <pigfoot@gmail.com>
-rw-r--r--net-analyzer/amass/amass-9999.ebuild4
-rw-r--r--net-misc/BaiduPCS-Go/BaiduPCS-Go-9999.ebuild4
-rw-r--r--net-misc/curlie/curlie-9999.ebuild2
-rw-r--r--net-misc/hargo/hargo-9999.ebuild2
4 files changed, 6 insertions, 6 deletions
diff --git a/net-analyzer/amass/amass-9999.ebuild b/net-analyzer/amass/amass-9999.ebuild
index 0049921..0f2b829 100644
--- a/net-analyzer/amass/amass-9999.ebuild
+++ b/net-analyzer/amass/amass-9999.ebuild
@@ -43,11 +43,11 @@ src_compile() {
use pie && local build_pie="-buildmode=pie"
local build_flags="$( echo ${EGO_BUILD_FLAGS} ) $( echo ${build_pie} )"
- local ld_flags=""
+ local ld_flags="$( echo "" )"
set -- env \
CGO_ENABLED=0 \
- go build -o "bin/${PN}" -mod=vendor -v -work -x "${build_flags}" -ldflags "${ld_flags}" \
+ go build -o "bin/${PN}" -mod=vendor -v -work -x ${build_flags} -ldflags "${ld_flags}" \
./cmd/${PN}
echo "$@"
"$@" || die
diff --git a/net-misc/BaiduPCS-Go/BaiduPCS-Go-9999.ebuild b/net-misc/BaiduPCS-Go/BaiduPCS-Go-9999.ebuild
index 01efabe..6adfb31 100644
--- a/net-misc/BaiduPCS-Go/BaiduPCS-Go-9999.ebuild
+++ b/net-misc/BaiduPCS-Go/BaiduPCS-Go-9999.ebuild
@@ -43,11 +43,11 @@ src_compile() {
use pie && local build_pie="-buildmode=pie"
local build_flags="$( echo ${EGO_BUILD_FLAGS} ) $( echo ${build_pie} )"
- local ld_flags="$( echo "-s -w -X 'main.Version='${EGO_VER}'" )"
+ local ld_flags="$( echo "-s -w -X 'main.Version=${EGO_VER}'" )"
set -- env \
CGO_ENABLED=0 \
- go build -o "bin/baidu-pcs" -mod=vendor -v -work -x "${build_flags}" -ldflags "${ld_flags}" \
+ go build -o "bin/baidu-pcs" -mod=vendor -v -work -x ${build_flags} -ldflags "${ld_flags}" \
.
echo "$@"
"$@" || die
diff --git a/net-misc/curlie/curlie-9999.ebuild b/net-misc/curlie/curlie-9999.ebuild
index ac9812b..b914185 100644
--- a/net-misc/curlie/curlie-9999.ebuild
+++ b/net-misc/curlie/curlie-9999.ebuild
@@ -47,7 +47,7 @@ src_compile() {
set -- env \
CGO_ENABLED=0 \
- go build -o "bin/${PN}" -mod=vendor -v -work -x "${build_flags}" -ldflags "${ld_flags}" \
+ go build -o "bin/${PN}" -mod=vendor -v -work -x ${build_flags} -ldflags "${ld_flags}" \
.
echo "$@"
"$@" || die
diff --git a/net-misc/hargo/hargo-9999.ebuild b/net-misc/hargo/hargo-9999.ebuild
index efebab5..44c6c21 100644
--- a/net-misc/hargo/hargo-9999.ebuild
+++ b/net-misc/hargo/hargo-9999.ebuild
@@ -47,7 +47,7 @@ src_compile() {
set -- env \
CGO_ENABLED=0 \
- go build -o "bin/${PN}" -mod=vendor -v -work -x "${build_flags}" -ldflags "${ld_flags}" \
+ go build -o "bin/${PN}" -mod=vendor -v -work -x ${build_flags} -ldflags "${ld_flags}" \
./cmd/${PN}
echo "$@"
"$@" || die