File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed
crates/cargo-test-support/src Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -866,16 +866,8 @@ impl Package {
866
866
self
867
867
}
868
868
869
- /// Call with `true` to publish a git dependency in a "local registry".
870
- ///
871
- /// The difference between this and [Package::local] is that this will
872
- /// skip checksum generation as git dependencies do not have checksums.
873
- ///
874
- /// See `source-replacement.html#local-registry-sources` for more details
875
- /// on local registries. See `local_registry.rs` for the tests that use
876
- /// this.
877
- pub fn local_from_git ( & mut self , local : bool ) -> & mut Package {
878
- self . local = local;
869
+ /// Call with `true` to prevent a checksum being generated for the package.
870
+ pub fn skip_checksum ( & mut self , local : bool ) -> & mut Package {
879
871
self . generate_checksum = !local;
880
872
self
881
873
}
Original file line number Diff line number Diff line change @@ -563,7 +563,8 @@ fn git_dependencies_do_not_require_a_checksum() {
563
563
t ! ( fs:: create_dir( & root. join( ".cargo" ) ) ) ;
564
564
565
565
Package :: new ( "bar" , "0.0.1" )
566
- . local_from_git ( true )
566
+ . local ( true )
567
+ . skip_checksum ( true )
567
568
. file ( "src/lib.rs" , "pub fn bar() {}" )
568
569
. publish ( ) ;
569
570
You can’t perform that action at this time.
0 commit comments