From 4fd731af37c68d7bb1afbec5a5966fee6b70c3fe Mon Sep 17 00:00:00 2001 From: Eugene Blikh Date: Tue, 19 May 2026 13:15:20 +0300 Subject: [PATCH] ci: install Go 1.26 toolchain + cmake on builds.srht MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ubuntu noble's `golang` apt package is too old to satisfy go.mod's toolchain directive — `go build` aborted with "toolchain not available". Drop the apt package, install the official Go 1.26.3 tarball into ~/.local/go, and update go.mod / bench/go/go.mod accordingly. Also add cmake + build-essential so `tt rocks install luatest` can build its `checks` dependency. --- .builds/c-enabled.yml | 22 +++++++++++++++++----- .builds/pure-lua.yml | 20 +++++++++++++++++--- bench/go/go.mod | 2 +- go.mod | 2 +- 4 files changed, 36 insertions(+), 10 deletions(-) diff --git a/.builds/c-enabled.yml b/.builds/c-enabled.yml index f131265b8ac6ce6582504dd09f9580a93d18984c..b314a022cbdf4e6f1294f3fd698f197ff0e348c2 100644 --- a/.builds/c-enabled.yml +++ b/.builds/c-enabled.yml @@ -3,17 +3,29 @@ packages: - curl - ca-certificates - gnupg - - gcc - - make - - golang - protobuf-compiler + - cmake + - build-essential sources: - - https://sourcecraft.dev/bigbes/tarantool-protobuf + - https://git.srht.bigb.es/~bigbes/tarantool-protobuf environment: GOPATH: /home/build/go - PATH: /home/build/.local/bin:/home/build/go/bin:/usr/local/bin:/usr/bin:/bin + GOROOT: /home/build/.local/go + GO_VERSION: "1.26.3" + PATH: /home/build/.local/go/bin:/home/build/.local/bin:/home/build/go/bin:/usr/local/bin:/usr/bin:/bin PB_ENABLE_C: "1" +submitter: + git.sr.ht: + enabled: true + allow-refs: + - refs/heads/master + - "refs/tags/*" tasks: + - install_go: | + mkdir -p ~/.local + curl -sSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" \ + | tar -xz -C ~/.local + go version - install_tarantool: | curl -L https://tarantool.io/release/3/installer.sh | sudo bash sudo apt-get install -y tarantool tarantool-dev tt diff --git a/.builds/pure-lua.yml b/.builds/pure-lua.yml index 9f29ab066cd0cd636fbb490e6a3f5563a6f42b1a..e3746f4f81cea3709b1113a63ab1f2f1776aec63 100644 --- a/.builds/pure-lua.yml +++ b/.builds/pure-lua.yml @@ -3,14 +3,28 @@ packages: - curl - ca-certificates - gnupg - - golang - protobuf-compiler + - cmake + - build-essential sources: - - https://sourcecraft.dev/bigbes/tarantool-protobuf + - https://git.srht.bigb.es/~bigbes/tarantool-protobuf environment: GOPATH: /home/build/go - PATH: /home/build/.local/bin:/home/build/go/bin:/usr/local/bin:/usr/bin:/bin + GOROOT: /home/build/.local/go + GO_VERSION: "1.26.3" + PATH: /home/build/.local/go/bin:/home/build/.local/bin:/home/build/go/bin:/usr/local/bin:/usr/bin:/bin +submitter: + git.sr.ht: + enabled: true + allow-refs: + - refs/heads/master + - "refs/tags/*" tasks: + - install_go: | + mkdir -p ~/.local + curl -sSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" \ + | tar -xz -C ~/.local + go version - install_tarantool: | curl -L https://tarantool.io/release/3/installer.sh | sudo bash sudo apt-get install -y tarantool tarantool-dev tt diff --git a/bench/go/go.mod b/bench/go/go.mod index 0e2485a6c8aa92340c6342c10a5fbe6876371b80..20d53b6390e7b674a6760cd7917bd477c483f6ec 100644 --- a/bench/go/go.mod +++ b/bench/go/go.mod @@ -1,6 +1,6 @@ module github.com/tarantool-protobuf/bench/go -go 1.23 +go 1.26 require ( github.com/planetscale/vtprotobuf v0.6.0 diff --git a/go.mod b/go.mod index 3efe4598fe1dbb95ee5ab14d9bbeb4560a1663a1..321ace99783e753d7cfedfe9c146c7c58177bed9 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ module sourcecraft.dev/bigbes/tarantool-protobuf -go 1.23 +go 1.26 require google.golang.org/protobuf v1.36.0