Repository navigation
Disable cgo: allow execution on machines without glibc (alpine and openwrt use musl-libc) - #537
Closed
madejackson wants to merge 17 commits into
Closed
madejackson wants to merge 17 commits into
madejackson wants to merge 17 commits into
Conversation
now also works on systems with musl-libc, which is predominantly alpine and openwrt
now also works on systems with musl-libc, which is predominantly alpine and openwrt
Contributor
Author
|
CGO_ENABLED=0 has been added in v0.22.20: 4537c33 |
madejackson
added a commit
to aseracorp/Cosmos-Server
that referenced
this pull request
Nov 16, 2026
* docs: rewrite the unstable ledger with a full PR census [skip ci] The ledger was keyed on fork commits, so PRs without their own fork commit (azukaar#495, azukaar#594, azukaar#615, azukaar#281, azukaar#444, azukaar#537, azukaar#607, azukaar#623) were invisible. New section "Full PR census" accounts for every PR this fork opened, classified against the tree by patch-id + file-set + content grep, with live mergeable_state. Corrections, all re-measured on 2026-11-16 (not adjusted from the old text): - counts: 41 fork commits / 135 files (+12507/-4046), 51 PRs = 7 merged, 28 open, 16 closed-unmerged, 26 clean + 2 dirty. - "azukaar#582 needs azukaar#580" was false. HeadProbeCORS is defined in exactly one place anywhere: fork commit 924f8eb. azukaar#580 (closed) touches only routeTo.go and defines nothing azukaar#582 needs. pr582 head fails to build with httpServer.go:949 undefined: utils.HeadProbeCORS; pr581 head builds OK. - "azukaar#595 -> azukaar#585 ordering" was half true: it is a content dependency on DurationStr, not an ordering constraint. 585,595 and 595,585 both build. - azukaar#592/azukaar#593 (bind-IP parse) are NOT a gap: pr593 is an ancestor of upstream/unstable (2529f20, v0.24.0-unstable006). Do not re-open. - azukaar#495, azukaar#594, azukaar#627 are shipped without a standalone fork commit. - azukaar#607 (newInstall RemoveAll) and azukaar#615 (source-less volume crash) are real gaps the fork carries on both channels. - anchors recomputed with a stated method; the old 87/85/37 column was not reproducible under any counting method. - translation census: fork 2326 keys, upstream 2272, fork-only 54, upstream-only 0; the 8 dropped keys have zero full-key references. * docs: census was upstream-only; the two fork-repo PRs were both gaps [skip ci] The "Full PR census" section was headed "Every PR this fork opened" but was built from one query, /repos/azukaar/Cosmos-Server/pulls. PRs live in two repos: upstream has 51, the fork repo has 58 (42 merged, 14 closed-unmerged, 2 open). The 2 open ones in the fork repo appeared nowhere in the file, and both are real gaps: - #58 SOCKS5 relay routes: 0 "socks5" hits in src on fork and upstream. 10 commits over merge-base 61050b7, +2555/-19, 21 files. merge-tree of origin/unstable x forkpr58 = 0 conflicts (only ASERACORP.md overlaps, auto-merged). Merged the head into the tip in a scratch worktree: go build ./src OK, go vet ./src/proxy OK, SOCKS tests + wire-contract tests ok. Ready to land. - #36 stale deSEC tokens: fix commit 82ac2c3 (+519 lines, certificates.go), cleanupStaleChallengeTokens + desecAPI = 0 hits in the tip. The PR head is a stale branch (7 conflicts incl. build.yml add/add) - take the one commit. - #31 dormant/health: dormant half is in the tree; the completed-vs-exited split is not (14 "completed" hits at 53edd49, 0 at tip; 3fc0ac8 is not an ancestor of it). Also corrects the azukaar#623 row: src/dnsrecords is UPSTREAM code (added in 63e5a24 = unstable021, tree 427d855 byte-identical on both sides, fork net diff on certificates.go = 0 lines) - the earlier text called it fork code. Fork #34 (deSEC autosetup) and the multicast-relay PRs are recorded as deliberate exclusions, verified 0 hits, per the 2026-10-09 instruction. New traps: count PRs per repo, not per "the fork"; only PR-invented function names are admissible signatures (generateCA/DoLetsEncrypt/GetEmail are name collisions); git worktree add takes <path> [<branch>] and a failed add leaves the shell in the main clone, which is how a bogus HEAD got read; go build in a cold worktree blows the 60s sync window (go mod download first); /tmp worktrees die with /tmp, commits survive in the object DB. * docs: GitHub Actions is disabled repo-wide - CI is running nowhere [skip ci] Dispatching test.yml returned HTTP 422: Actions has been disabled for this repository. Last run of any kind is #58 Test at 2026-11-14 21:51. Since then: 0 check-runs on PRs #59/#60/#61, 0 check-runs on tip 953b957 (so build.yml published no unstable release for it), and the hourly upstream-sync cron (17 * * * *) last fired 2026-11-14 21:26 - about 39 runs missing. The trap: actions/permissions reports enabled true / allowed_actions all. That is the policy endpoint, not the UI toggle, so Actions enabled read true while nothing ran. A PR whose checks area is empty reads as mergeable when it is really signal-less. Controls that do have check-runs: c3a6857 (1), d043340 (16). No REST endpoint re-enables it - Settings > Actions > General, admin, browser. Until then the gate is local: cp src/update.go src/launcher/update.go then go test -count=1 ./src/... , plus npm run client-build for client changes (test.yml never builds the client). Local gate results for the three open PRs: tmpfs fix - vite client build 26.40s OK, esbuild parse OK. deSEC fix - go build OK, go test ./src/... RC=0, -trimpath build RC=0, vet unchanged from baseline. Both recorded as verified locally, no CI. --------- Co-authored-by: madejackson <madejackson@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There was a go build issue where the final binary made use of a shared glibc library on x86_64. This lead to an issue where the binary could not be run on a machine without glibc (alpine and openwrt use musl-libc).
This commits add CGO_ENABLED=0 in front of go build commands to force go build to only use go libraries. This avoids this issue altogether while having a more predictable outcome.
There are two commits. The first commit disables cgo only where I encountered the error.
The second commit disables cgo for every go build command.