From 4f933bf130741736838fc8be32e722630ea9e8c4 Mon Sep 17 00:00:00 2001 From: k3nny Date: Sat, 11 Jul 2026 21:38:26 +0200 Subject: [PATCH] =?UTF-8?q?fix(ci):=20release=20v1.6.1=20=E2=80=94=20skip?= =?UTF-8?q?=20chmod=20tests=20when=20running=20as=20root?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Four tests relied on os.Chmod to force error paths but were failing in Docker CI (golang:1.26-alpine runs as root, where chmod restrictions have no effect). Added os.Getuid() == 0 skip guards to: - internal/gradle: TestWriteVersionReadOnly - internal/gitutil: TestLatestTagTagsIterFails (replaced broken skip logic that only fired if Chmod itself errored) - cmd: TestInitConfigWriteFails, TestRunLatestTagFails Co-Authored-By: Claude Sonnet 4.6 --- CHANGELOG.md | 6 ++++++ README.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7bab5d2..941a0ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file. Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). +## [1.6.1] - 2026-07-11 + +### Fixed + +- **CI root-permission failures** — four tests that used `os.Chmod` to force error paths were failing in Docker CI (which runs as root, where chmod has no enforcement effect); each now skips with `os.Getuid() == 0`; the gitutil test had broken skip logic that only fired if `Chmod` itself errored — replaced with the same upfront UID check + ## [1.6.0] - 2026-07-11 ### Added diff --git a/README.md b/README.md index efb9951..d8ec3da 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # releaser -![release](https://img.shields.io/badge/release-v1.6.0-blue.svg) +![release](https://img.shields.io/badge/release-v1.6.1-blue.svg) A CI-friendly release automation tool for GitFlow workflows using Conventional Commits.