Files
ProxmoxVE/ct
CanbiZ (MickLesk) f5d336cfed tor-snowflake: read the Go version from the module root (#17276)
* tor-snowflake: read the Go version from the module root

Snowflake is a single Go module with go.mod at the repository root, not
under proxy/. The install read /opt/tor-snowflake/proxy/go.mod, which
has never existed, so grep failed and the version came out empty. Go
was then fetched from

  https://go.dev/dl/go.linux-amd64.tar.gz

with no version in the name, and the install aborted at that download.

Read the directive with a single awk instead of grep piped into awk.
The pipeline tripped catch_errors, which sets -Ee with pipefail and an
ERR trap, the moment the file was missing; that is the "exit code 2
while executing command awk" line that preceded the download failure.

Fall back to latest when the file cannot be read, so a future upstream
move of go.mod costs a Go version that is newer than the one pinned
rather than a failed build. setup_go already resolves latest, and also
resolves a bare major.minor to its newest patch, so a go directive
without a patch level stays fine.

Verified against v2.14.1: go.mod sits at the root and declares go
1.24.0, and the awk yields 1.24.0 from it and latest from a missing
file without tripping the ERR trap.

* Refactor GO_VERSION extraction in tor-snowflake.sh

Updated the method of extracting GO_VERSION from go.mod and set a default value if not found.
2026-09-16 11:59:19 +02:00
..
2026-09-15 09:16:43 +02:00
2026-08-24 17:09:34 +02:00
2026-08-26 22:09:11 +10:00
2026-08-24 17:11:26 +02:00
2026-09-14 15:50:54 +02:00
2026-08-25 16:09:04 +02:00
2026-08-26 22:09:19 +10:00
2026-09-07 16:57:57 +02:00
2026-09-10 15:10:59 +02:00
2026-09-08 11:20:32 +02:00
2026-08-30 20:53:34 +02:00
2026-08-26 13:42:52 +02:00
2026-09-12 22:11:22 +02:00
2026-08-26 22:07:45 +10:00
2026-08-26 13:42:13 +02:00
2026-09-12 11:52:55 +02:00
2026-09-12 14:24:00 +02:00
2026-08-26 08:48:51 +02:00
2026-09-15 08:30:40 +02:00
2026-09-02 16:31:59 +02:00
2026-09-07 16:51:29 +02:00
2026-09-11 23:40:58 +02:00
2026-09-09 15:25:01 +02:00
2026-09-10 15:02:09 +02:00
2026-09-01 22:25:05 +02:00
2026-09-07 16:53:13 +02:00
2026-09-11 07:43:35 +02:00
2026-08-30 20:53:12 +02:00
2026-08-26 13:42:32 +02:00
2026-08-31 08:49:37 +02:00
2026-08-26 13:41:49 +02:00
2026-09-02 16:32:44 +02:00
2026-09-10 15:02:18 +02:00
2026-08-25 15:11:31 +02:00
2026-09-02 16:31:34 +02:00
2026-08-24 17:07:31 +02:00
2026-09-10 13:49:15 +02:00
2026-08-27 09:56:12 +02:00
2026-08-30 20:55:03 +02:00
2026-09-08 11:18:20 +02:00
2026-09-15 09:16:43 +02:00