Skip to content

Remove use of ChrootOS#2061

Merged
pjbgf merged 4 commits into
mainfrom
v6-test
May 6, 2026
Merged

Remove use of ChrootOS#2061
pjbgf merged 4 commits into
mainfrom
v6-test

Conversation

@pjbgf
Copy link
Copy Markdown
Member

@pjbgf pjbgf commented May 6, 2026

The ChrootOS implementation from go-billy has been deprecated in v5 and completely removed from v6. This change removes that dependency.

Copilot AI review requested due to automatic review settings May 6, 2026 12:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes reliance on the deprecated/removed ChrootOS implementation in go-billy (v6) by updating tests and simplifying .git alternates path handling to avoid the prior chroot-specific type check.

Changes:

  • Removed ChrootOS-specific test cases (keeping BoundOS) in dotgit-related filesystem tests.
  • Updated DotGit.Alternates() to handle absolute alternates paths without depending on helper/chroot + reflection.
  • Replaced go-billy util.TempDir/TempFile/WriteFile usage in several tests with testing.T.TempDir() + os.WriteFile/os.MkdirAll.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
storage/filesystem/dotgit/writers_test.go Drops ChrootOS variants from permission/read-only writer tests.
storage/filesystem/dotgit/dotgit.go Removes reflection/chroot helper dependency; adjusts alternates absolute-path normalization.
storage/filesystem/dotgit/dotgit_test.go Drops ChrootOS variant from an issue regression test matrix.
storage/filesystem/config_test.go Uses TempDir() instead of go-billy temp dir helper in suite setup.
plumbing/transport/ssh/auth_extended_test.go Uses TempDir() + os.WriteFile instead of go-billy temp file utilities.
config/config_test.go Uses TempDir() + os filesystem operations instead of go-billy temp dir/file helpers.

Comment thread storage/filesystem/dotgit/dotgit.go Outdated
Signed-off-by: Paulo Gomes <[email protected]>
@pjbgf pjbgf force-pushed the v6-test branch 3 times, most recently from b9b718e to e10d74e Compare May 6, 2026 13:36
@pjbgf pjbgf merged commit 5518726 into main May 6, 2026
17 of 19 checks passed
@pjbgf pjbgf deleted the v6-test branch May 6, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants