turns out the buildsetting stuff was added in go 1.18
This commit is contained in:
parent
887bf8e8a6
commit
0e4a87c523
2
README
2
README
|
@ -20,7 +20,7 @@ This does not imply the goal is to be what you want.
|
|||
## build
|
||||
|
||||
It should be sufficient to type make after unpacking a release.
|
||||
You'll need a go compiler version 1.16 or later. And libsqlite3.
|
||||
You'll need a go compiler version 1.18 or later. And libsqlite3.
|
||||
|
||||
Even on a fast machine, building from source can take several seconds.
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ proxy_set_header Host $http_host;
|
|||
.Ss Build
|
||||
Building
|
||||
.Nm
|
||||
requires a go compiler 1.16 and libsqlite.
|
||||
requires a go compiler 1.18 and libsqlite.
|
||||
On
|
||||
.Ox
|
||||
this is the go and sqlite3 packages.
|
||||
|
|
7
go.mod
7
go.mod
|
@ -1,6 +1,6 @@
|
|||
module humungus.tedunangst.com/r/honk
|
||||
|
||||
go 1.16
|
||||
go 1.18
|
||||
|
||||
require (
|
||||
github.com/andybalholm/cascadia v1.3.1
|
||||
|
@ -11,3 +11,8 @@ require (
|
|||
humungus.tedunangst.com/r/go-sqlite3 v1.1.3
|
||||
humungus.tedunangst.com/r/webs v0.6.68
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/rivo/uniseg v0.2.0 // indirect
|
||||
golang.org/x/image v0.0.0-20220413100746-70e8d0d3baa9 // indirect
|
||||
)
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
set -e
|
||||
|
||||
go version > /dev/null 2>&1 || (echo go 1.16+ is required && false)
|
||||
go version > /dev/null 2>&1 || (echo go 1.18+ is required && false)
|
||||
|
||||
v=`go version | egrep -o "go1\.[^.]+"` || echo failed to identify go version
|
||||
if [ "$v" \< "go1.16" ] ; then
|
||||
if [ "$v" \< "go1.18" ] ; then
|
||||
echo go version is too old: $v
|
||||
echo go 1.16+ is required
|
||||
echo go 1.18+ is required
|
||||
false
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue