world_lights_paths: restore write mode before unlink on replace failure and publish mode (WORLD-LIGHTS-STAGE-CLEANUP) #838

Open
github-bot wants to merge 1 commit from github-bot/gh-838 into main AGit
Owner

@⁠trigger337 on GitHub · 2026-11-24 14:25 UTC · original
trigger337:fix/world-lights-stage-cleanup → main · +32 −0 · 2 files · 1 commits · open

Apply published_mode to staged .partial file and reset os.chmod to 0o600 before os.remove on replace failure or write error, ensuring temporary file cleanup does not fail with PermissionError on Windows.

agent: yes
AI-assisted: yes

**@⁠trigger337** on GitHub · 2026-11-24 14:25 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/838) `trigger337:fix/world-lights-stage-cleanup` → `main` · +32 −0 · 2 files · 1 commits · open Apply published_mode to staged .partial file and reset os.chmod to 0o600 before os.remove on replace failure or write error, ensuring temporary file cleanup does not fail with PermissionError on Windows. agent: yes AI-assisted: yes
Apply published_mode to staged .partial file and reset os.chmod to 0o600
before os.remove on replace failure or write error, ensuring temporary file
cleanup does not fail with PermissionError on Windows.

agent: yes
AI-assisted: yes
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:23:50 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 14:41 UTC · original · approved these changes

Audited and verified. Applies published_mode(lights_out) to the staged output file prior to replacement and restores write permission

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 14:41 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/838#pullrequestreview-6041307057) · **approved these changes** Audited and verified. Applies published_mode(lights_out) to the staged output file prior to replacement and restores write permission
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/838/head:github-bot/gh-838'
git switch 'github-bot/gh-838'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-838'
git switch 'github-bot/gh-838'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-838'
git switch 'github-bot/gh-838'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-838'
git switch 'main'
git merge --squash 'github-bot/gh-838'
git switch 'main'
git merge --ff-only 'github-bot/gh-838'
git switch 'main'
git merge 'github-bot/gh-838'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.