File tree 2 files changed +4
-11
lines changed
crates/cargo-test-support/src
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -879,16 +879,8 @@ impl Package {
879
879
self
880
880
}
881
881
882
- /// Call with `true` to publish a git dependency in a "local registry".
883
- ///
884
- /// The difference between this and [Package::local] is that this will
885
- /// skip checksum generation as git dependencies do not have checksums.
886
- ///
887
- /// See `source-replacement.html#local-registry-sources` for more details
888
- /// on local registries. See `local_registry.rs` for the tests that use
889
- /// this.
890
- pub fn local_from_git ( & mut self , local : bool ) -> & mut Package {
891
- self . local = local;
882
+ /// Call with `true` to prevent a checksum being generated for the package.
883
+ pub fn skip_checksum ( & mut self , local : bool ) -> & mut Package {
892
884
self . generate_checksum = !local;
893
885
self
894
886
}
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