FreeBSD Bugzilla – Attachment 225862 Details for
Bug 256581
Mk/Uses/cargo.mk: CARGO_GIT_SUBDIR doesn't work with unpacked [dependencies.<crate>]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
cargo-git-update.diff
cargo-git-update.diff (text/plain), 1.30 KB, created by
Tobias Kortkamp
on 2021-06-16 17:57:49 UTC
(
hide
)
Description:
cargo-git-update.diff
Filename:
MIME Type:
Creator:
Tobias Kortkamp
Created:
2021-06-16 17:57:49 UTC
Size:
1.30 KB
patch
obsolete
>diff --git a/src/cargo/sources/git/source.rs b/src/cargo/sources/git/source.rs >index 9d7c42b82..f11442bfc 100644 >--- a/src/cargo/sources/git/source.rs >+++ b/src/cargo/sources/git/source.rs >@@ -84,6 +84,9 @@ impl<'cfg> Debug for GitSource<'cfg> { > > impl<'cfg> Source for GitSource<'cfg> { > fn query(&mut self, dep: &Dependency, f: &mut dyn FnMut(Summary)) -> CargoResult<()> { >+ if std::env::var("CARGO_FREEBSD_PORTS_SKIP_GIT_UPDATE").is_ok() { >+ return Ok(()); >+ } > let src = self > .path_source > .as_mut() >@@ -92,6 +95,9 @@ impl<'cfg> Source for GitSource<'cfg> { > } > > fn fuzzy_query(&mut self, dep: &Dependency, f: &mut dyn FnMut(Summary)) -> CargoResult<()> { >+ if std::env::var("CARGO_FREEBSD_PORTS_SKIP_GIT_UPDATE").is_ok() { >+ return Ok(()); >+ } > let src = self > .path_source > .as_mut() >@@ -112,6 +118,9 @@ impl<'cfg> Source for GitSource<'cfg> { > } > > fn update(&mut self) -> CargoResult<()> { >+ if std::env::var("CARGO_FREEBSD_PORTS_SKIP_GIT_UPDATE").is_ok() { >+ return Ok(()); >+ } > let git_path = self.config.git_path(); > let git_path = self.config.assert_package_cache_locked(&git_path); > let db_path = git_path.join("db").join(&self.ident);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256581
: 225862