mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-08 20:58:16 -05:00
[PR #204] [MERGED] fix(nix): ensure absolute bundle path in pre-sync backup #583
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/204
Author: @arunavo4
Created: 3/1/2026
Status: ✅ Merged
Merged: 3/1/2026
Merged by: @arunavo4
Base:
main← Head:fix/203-bundle-path-nix📝 Commits (3)
dc2eca0fix(nix): ensure absolute bundle path in pre-sync backup (#203)c2887dcfix(nix): ensure absolute bundle path in pre-sync backup (#203)1014e7fci: drop macos matrix and only run nix build on main/tags📊 Changes
4 files changed (+152 additions, -23 deletions)
View changed files
📝
.github/workflows/nix-build.yml(+2 -4)📝
package.json(+1 -1)➕
src/lib/repo-backup.test.ts(+115 -0)📝
src/lib/repo-backup.ts(+34 -18)📄 Description
Summary
Unable to create '...bundle.lock': No such file or directoryerrors on NixOS (#203)path.isAbsolute()check with unconditionalpath.resolve()to guaranteebundlePathis always absolute before passing togit -CbackupDirectoryis relativeRoot Cause
git -C mirrorClonePath bundle create bundlePathchanges git's working directory to the temp clone. IfbundlePathis relative, git interprets it relative tomirrorClonePath, producing an invalid concatenated path like:Test plan
git bundle createwhenbackupDirectoryis relativeCloses #203
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.