mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00
cni: reproducible builds: pass -trimpath
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
parent
f6f4f2c1c3
commit
f5b7922278
|
@ -38,10 +38,10 @@ do_compile() {
|
|||
export GO111MODULE=off
|
||||
|
||||
cd ${B}/src/github.com/containernetworking/cni/libcni
|
||||
${GO} build
|
||||
${GO} build -trimpath
|
||||
|
||||
cd ${B}/src/github.com/containernetworking/cni/cnitool
|
||||
${GO} build
|
||||
${GO} build -trimpath
|
||||
|
||||
cd ${B}/src/github.com/containernetworking/plugins
|
||||
PLUGINS="$(ls -d plugins/meta/*; ls -d plugins/ipam/*; ls -d plugins/main/* | grep -v windows)"
|
||||
|
@ -49,7 +49,7 @@ do_compile() {
|
|||
for p in $PLUGINS; do
|
||||
plugin="$(basename "$p")"
|
||||
echo "building: $p"
|
||||
${GO} build -o ${B}/plugins/bin/$plugin github.com/containernetworking/plugins/$p
|
||||
${GO} build -trimpath -o ${B}/plugins/bin/$plugin github.com/containernetworking/plugins/$p
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user