v1.2.2 - Installer fix: no space left on device
What's changed
Bug Fix: no space left on device during Go build
Servers with a small /tmp tmpfs (common on VPS providers) would fail mid-build with hundreds of no space left on device errors because the Go compiler writes gigabytes of temp files.
Two changes in scripts/install.sh:
-
Smart tmp selection — at startup the installer now compares free space on
/tmpvs/var/tmpand picks whichever has more room. On most VPS servers/var/tmplives on the main disk with gigabytes of headroom. -
Pinned build artifacts —
GOTMPDIRandGOCACHEare now set to subdirectories insidework_dir. This means all Go compiler output (intermediate objects, vet configs, build cache) lands on the same filesystem as the downloaded source, not scattered across separate tmpfs mounts. -
Pre-build space check — the installer now aborts with a clear message if less than 1 GB is free before starting compilation, instead of failing 200 packages into the build.
Upgrading
curl -fsSL https://raw.githubusercontent.com/TaJirax/CottenRouter/main/scripts/install.sh | sudo bashFull Changelog: v1.2.1...v1.2.2