2020-10-02 03:58:50 +02:00
|
|
|
set -e
|
|
|
|
|
2022-05-31 08:32:22 +02:00
|
|
|
go version > /dev/null 2>&1 || (echo go 1.16+ is required && false)
|
2020-10-02 03:58:50 +02:00
|
|
|
|
2022-05-31 08:45:51 +02:00
|
|
|
v=`go version | egrep -o "go1\.[^.]+"` || echo failed to identify go version
|
|
|
|
if [ "$v" \< "go1.16" ] ; then
|
|
|
|
echo go version is too old: $v
|
|
|
|
echo go 1.16+ is required
|
|
|
|
false
|
|
|
|
fi
|
2020-10-02 03:58:50 +02:00
|
|
|
|
|
|
|
if [ \! \( -e /usr/include/sqlite3.h -o -e /usr/local/include/sqlite3.h \) ] ; then
|
|
|
|
echo unable to find sqlite3.h header
|
|
|
|
echo please install libsqlite3 dev package
|
|
|
|
false
|
|
|
|
fi
|
|
|
|
|
|
|
|
touch .preflightcheck
|
|
|
|
|