mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
build plugins with own modfile.
This commit is contained in:
parent
ae7e6dc2d7
commit
cd2d9b413d
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 New Issue
Block a user