build plugins with own modfile.

This commit is contained in:
Aleksandar Sukovic 2022-05-03 08:15:44 +00:00
parent ae7e6dc2d7
commit cd2d9b413d

6
build
View File

@ -44,12 +44,8 @@ fi
for plugPath in ./plugins/*; do
pushd $plugPath
# replace plugin dependecy
go mod edit -replace "gitlab.com/demodesk/neko/server=../../"
# load plugin dependencies
go get -v -t -d .
# build plugin
go build -buildmode=plugin -o "../../bin/plugins/${plugPath##*/}.so"
go build -modfile=go.plug.mod -buildmode=plugin -o "../../bin/plugins/${plugPath##*/}.so"
popd
done