File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ impl EncodableResolve {
143
143
let mut checksums = HashMap :: new ( ) ;
144
144
145
145
let mut version = match self . version {
146
- Some ( 1 ) => ResolveVersion :: V3 ,
146
+ Some ( 3 ) => ResolveVersion :: V3 ,
147
147
Some ( n) => bail ! (
148
148
"lock file version `{}` was found, but this version of Cargo \
149
149
does not understand this lock file, perhaps Cargo needs \
@@ -597,7 +597,7 @@ impl<'a> ser::Serialize for Resolve {
597
597
metadata,
598
598
patch,
599
599
version : match self . version ( ) {
600
- ResolveVersion :: V3 => Some ( 1 ) ,
600
+ ResolveVersion :: V3 => Some ( 3 ) ,
601
601
ResolveVersion :: V2 | ResolveVersion :: V1 => None ,
602
602
} ,
603
603
}
Original file line number Diff line number Diff line change @@ -649,7 +649,7 @@ fn v3_and_git() {
649
649
let lockfile = format ! (
650
650
r#"# This file is automatically @generated by Cargo.
651
651
# It is not intended for manual editing.
652
- version = 1
652
+ version = 3
653
653
654
654
[[package]]
655
655
name = "dep1"
@@ -684,7 +684,7 @@ dependencies = [
684
684
) ,
685
685
)
686
686
. file ( "src/lib.rs" , "" )
687
- . file ( "Cargo.lock" , "version = 1 " )
687
+ . file ( "Cargo.lock" , "version = 3 " )
688
688
. build ( ) ;
689
689
690
690
p. cargo ( "fetch" ) . run ( ) ;
You can’t perform that action at this time.
0 commit comments