Addresses #222. Plugins and the binaries loading them need to be built with the exact same go version. Also update README instructions.
12 lines
332 B
Bash
Executable File
12 lines
332 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ $# -eq 0 ]
|
|
then
|
|
echo "No arguments, building current dir"
|
|
filename='.'
|
|
else
|
|
filename=$1
|
|
fi
|
|
|
|
docker run --rm -v $(pwd):/build -w /build fission/go-builder:1.8.1 go build -buildmode=plugin -o function.so $filename && echo "Compiled plugin: function.so. Use 'fission function create' to upload to fission."
|