-
Notifications
You must be signed in to change notification settings - Fork 761
Update gix to latest version to include gix status fix to not fail if worktree files can't be read.
#11958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@Byron is attempting to deploy a commit to the GitButler Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this 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 updates the tracing instrumentation for the project_files_change function to skip the repo parameter in trace output. According to the PR description, the originally intended fix for handling files that can't be diffed (particularly on Windows with locked files) actually needs to be implemented in the gitoxide library itself, not in this codebase.
Changes:
- Added
repoto the skip list in the#[instrument]macro forproject_files_changefunction
gix to latest version to include gix status fix to not fail if worktree files can't be read.
|
@krlvi The codeowners trigger is because I had to update |
Caleb-T-Owens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…itbutlerapp#5407) Right now, when a file that shows up in the status check can't be diffed, the whole operation fails. It turns out that on Windows, there are files that are locked and can't be read, so we should avoid failing in this case. Unfortunately the exact error code is unknown, but maybe we can make it a general feature and log the ignored files for now. Actually, this is an issue here: https://github.com/GitoxideLabs/gitoxide/blob/5c1bd0387f98eee37265a42ba4b6624c783c9a71/gix-status/src/index_as_worktree_with_renames/mod.rs#L530 So the status fails, and a `gix` fix is needed for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 4 changed files in this pull request and generated no new comments.
Right now, when a file that shows up in the status check can't be diffed, the whole operation fails.
It turns out that on Windows, there are files that are locked and can't be read, so we should avoid failing in this case.
Unfortunately the exact error code is unknown, but maybe we can make it a general feature and log the ignored files for now.
Related to #5407
Edit:
Actually this needs https://github.com/GitoxideLabs/gitoxide/blob/5c1bd0387f98eee37265a42ba4b6624c783c9a71/gix-status/src/index_as_worktree_with_renames/mod.rs#L530 to be altered to be able to survive not being able to read the file. So nothing to be done here.
This is now fixed, probably, with a fix in
gix. If it still fails, I think Windows might come up with different error codes, as for now I constrain it to specific issues.Tasks
gix