mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 16:59:12 +02:00
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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue