Skip to content

Create the rsync/CentOS link only when it is missing - #245

Merged
hcaballero2 merged 1 commit into
simp:masterfrom
hcaballero2:issue_244-centos-link-if-missing
Nov 24, 2026
Merged

hcaballero2 merged 1 commit into
simp:masterfrom
hcaballero2:issue_244-centos-link-if-missing

Conversation

@hcaballero2

Copy link
Copy Markdown
Contributor

simp environment new now creates the rsync/CentOS link only when the copied rsync skeleton does not already provide it; previously ln_s followed an existing CentOS -> RedHat link and created a RedHat/RedHat loop. Added specs for both cases (the existing-link case fails without the fix) and a changelog bullet on the unreleased 8.0.0 entry.

Fixes #244

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@michael-riddle michael-riddle left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The File.symlink? check catches a dangling link, and the second spec checks the real failure mode: ln_s into an existing directory link would have created RedHat/RedHat. The CHANGELOG line goes into the unreleased 8.0.0 entry, which is right.

@hcaballero2
hcaballero2 marked this pull request as ready for review November 24, 2026 20:14
@hcaballero2
hcaballero2 merged commit 5724fb1 into simp:master Nov 24, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in Org Triage Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

simp environment new creates rsync/CentOS unconditionally, so the rsync skeleton cannot ship it

2 participants