Skip to content

v1.2.2 - Installer fix: no space left on device

Choose a tag to compare

@TaJirax TaJirax released this 20 Aug 21:45
· 11 commits to main since this release

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:

  1. Smart tmp selection — at startup the installer now compares free space on /tmp vs /var/tmp and picks whichever has more room. On most VPS servers /var/tmp lives on the main disk with gigabytes of headroom.

  2. Pinned build artifactsGOTMPDIR and GOCACHE are now set to subdirectories inside work_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.

  3. 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 bash

Full Changelog: v1.2.1...v1.2.2