Skip to content

UNFUCK v0.1.1 — Hardened Release & Installation Experience

Choose a tag to compare

@roonakyadav roonakyadav released this 21 Sep 16:34
· 59 commits to main since this release

UNFUCK v0.1.1: Release Hardening & Clean-Room Verification

This release hardens the public distribution, installation, and error-handling pipeline of UNFUCK.

Key Improvements & Fixes

  • Hardened One-Line Installer (install.sh):
    • Atomic installation using temporary swap files (.unfuck.tmp.27757) to eliminate ETXTBSY (text file busy) on Linux.
    • Automatic prerequisite validation for tar, gzip, curl/wget, and SHA256 checksum utilities.
    • Dynamic latest release lookup with resilient pinned fallback.
    • Write permission checks on target directory ($HOME/.local/bin or custom override).
  • Standardized CLI Exit Codes:
    • 0: Environment compatible / all invariants hold / clean run.
    • 1: Predicted failures or environment constraint violations detected.
    • 2: Invalid invocation, nonexistent target path, or runtime error.
  • Robust Path & Syntax Validation:
    • Validates repository path existence and directory type, returning clear diagnostics instead of silent fallbacks.
    • Detects syntax errors in package.json and pyproject.toml with line-number evidence rather than ignoring malformed files.
  • Pure JSON Contract:
    • Guaranteed valid JSON on stdout for unfuck [PATH] --json on both successful runs and failure/error conditions.
    • Zero terminal formatting or ANSI codes mixed into JSON output.
  • Automated Clean-Room Smoke Test:
    • Added scripts/test-install.sh for verifying installation across isolated sandboxes.

Installation

curl -fsSL https://raw.githubusercontent.com/axonel/unfuck/main/install.sh | sh

Full Changelog: v0.1.0...v0.1.1