build plugins with own modfile.
This commit is contained in:
parent
ae7e6dc2d7
commit
cd2d9b413d
1 changed files with 1 additions and 5 deletions
6
build
6
build
|
|
@ -44,12 +44,8 @@ fi
|
||||||
for plugPath in ./plugins/*; do
|
for plugPath in ./plugins/*; do
|
||||||
pushd $plugPath
|
pushd $plugPath
|
||||||
|
|
||||||
# replace plugin dependecy
|
|
||||||
go mod edit -replace "gitlab.com/demodesk/neko/server=../../"
|
|
||||||
# load plugin dependencies
|
|
||||||
go get -v -t -d .
|
|
||||||
# build plugin
|
# 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
|
popd
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue