mirror of https://github.com/knative/func.git
Improvements for Go s2i assembler (#2765)
* Return error code when compilation was not done * Run `go mod tidy` on scaffoded code Signed-off-by: Matej Vašek <mvasek@redhat.com>
This commit is contained in:
parent
9f6a135702
commit
2d3962401d
|
@ -73,9 +73,11 @@ if [[ $(go list -f {{.Incomplete}}) == "true" ]]; then
|
||||||
popd
|
popd
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
exec /$STI_SCRIPTS_PATH/usage
|
/$STI_SCRIPTS_PATH/usage
|
||||||
|
exit 1
|
||||||
else
|
else
|
||||||
pushd .s2i/builds/last
|
pushd .s2i/builds/last
|
||||||
|
go mod tidy
|
||||||
go build -o /opt/app-root/gobinary
|
go build -o /opt/app-root/gobinary
|
||||||
popd
|
popd
|
||||||
popd
|
popd
|
||||||
|
|
Loading…
Reference in New Issue