-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Use gix
for cargo package
#15534
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
base: master
Are you sure you want to change the base?
Use gix
for cargo package
#15534
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -450,7 +450,11 @@ fn prepare_archive( | |
let src_files = src.list_files(pkg)?; | ||
|
||
// Check (git) repository state, getting the current commit hash. | ||
let vcs_info = vcs::check_repo_state(pkg, &src_files, ws, &opts)?; | ||
let vcs_info = if ws.gctx().cli_unstable().gitoxide.is_some() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Keeping both worlds neatly separated would allow for a staged rollout:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personally I would lean towards making it insta-stable, as I mentioned the check is a best-effort, though I'll put this in Cargo team meeting agenda next week! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pretty much like this approach There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To avoid wasting efforts, let's hold off feature-gate until we hear back from the team :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like people are okay with no fallback to libgit2. I think we can move forward just changing the implementation of |
||
vcs::gix::check_repo_state(pkg, &src_files, ws, &opts) | ||
} else { | ||
vcs::check_repo_state(pkg, &src_files, ws, &opts) | ||
}?; | ||
|
||
build_ar_list(ws, pkg, src_files, vcs_info, opts.include_lockfile) | ||
} | ||
|
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.
This will be set to the latest release on the 22nd or 23rd.