network/webhook: Fix build with the newer google-go-lang.

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2022-03-01 09:51:34 +01:00 committed by Willy Sudiarto Raharjo
parent 3243b42dab
commit fd486b11a2
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -73,7 +73,7 @@ mv $PRGNAM/vendor $PRGNAM-$VERSION/build/src
mkdir -p $PRGNAM-$VERSION/build/src/github.com/adnanh
mv $PRGNAM $PRGNAM-$VERSION/build/src/github.com/adnanh
cd $PRGNAM-$VERSION
GOPATH=$(pwd)/build go build -o $PKG/usr/sbin/webhook github.com/adnanh/$PRGNAM
GO111MODULE=auto GOPATH=$(pwd)/build go build -o $PKG/usr/sbin/webhook github.com/adnanh/$PRGNAM
strip -s $PKG/usr/sbin/webhook
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION