[GH-ISSUE #282] Build failure on Debian 12 #223

Open
opened 2026-02-26 12:34:18 +03:00 by kerem · 3 comments
Owner

Originally created by @stefanidzedev on GitHub (Sep 21, 2024).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/282

Tried to build cloak on a brand new Debian12 server, it resulted in the following error:

root@vps:~# git clone https://github.com/cbeuw/Cloak
cd Cloak
go get ./...
make
Cloning into 'Cloak'...
remote: Enumerating objects: 4949, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 4949 (delta 7), reused 12 (delta 7), pack-reused 4936 (from 1)
Receiving objects: 100% (4949/4949), 988.83 KiB | 2.91 MiB/s, done.
Resolving deltas: 100% (3306/3306), done.
go: errors parsing go.mod:
/root/Cloak/go.mod:5: unknown directive: toolchain
mkdir -p build
go build -ldflags "-X main.version=master(97a0313)" ./cmd/ck-client 
go: errors parsing go.mod:
/root/Cloak/go.mod:5: unknown directive: toolchain
make: *** [Makefile:11: client] Error 1

Expected Cloak to build and work properly

Originally created by @stefanidzedev on GitHub (Sep 21, 2024). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/282 Tried to build cloak on a brand new Debian12 server, it resulted in the following error: ``` root@vps:~# git clone https://github.com/cbeuw/Cloak cd Cloak go get ./... make Cloning into 'Cloak'... remote: Enumerating objects: 4949, done. remote: Counting objects: 100% (13/13), done. remote: Compressing objects: 100% (6/6), done. remote: Total 4949 (delta 7), reused 12 (delta 7), pack-reused 4936 (from 1) Receiving objects: 100% (4949/4949), 988.83 KiB | 2.91 MiB/s, done. Resolving deltas: 100% (3306/3306), done. go: errors parsing go.mod: /root/Cloak/go.mod:5: unknown directive: toolchain mkdir -p build go build -ldflags "-X main.version=master(97a0313)" ./cmd/ck-client go: errors parsing go.mod: /root/Cloak/go.mod:5: unknown directive: toolchain make: *** [Makefile:11: client] Error 1 ``` Expected Cloak to build and work properly
Author
Owner

@qwerttvv commented on GitHub (Sep 28, 2024):

try mine

https://github.com/qwerttvv/Router/blob/master/.github/workflows/ck-client.yml

<!-- gh-comment-id:2380320851 --> @qwerttvv commented on GitHub (Sep 28, 2024): try mine https://github.com/qwerttvv/Router/blob/master/.github/workflows/ck-client.yml
Author
Owner

@cbeuw commented on GitHub (Sep 30, 2024):

Debian 12's Go version is old (as with other packages on Debian...). You need at least 1.21

<!-- gh-comment-id:2384100574 --> @cbeuw commented on GitHub (Sep 30, 2024): Debian 12's Go version is old (as with other packages on Debian...). You need at least 1.21
Author
Owner

@keanpantraw commented on GitHub (Jan 23, 2025):

Install modern one from bookworm-backports or another trusted source.

<!-- gh-comment-id:2609846952 --> @keanpantraw commented on GitHub (Jan 23, 2025): Install modern one from bookworm-backports or another trusted source.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#223
No description provided.