File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed
Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " cli.rs " : patch
3+ " cli.js " : patch
4+ ---
5+
6+ Fix ` tauri info ` panic when a pacakage isn't installed.
Original file line number Diff line number Diff line change 11{
22 "cli.js" : {
33 "version" : " 1.0.0-rc.9" ,
4- "node" : " >= 10"
4+ "node" : " >= 10.0.0 "
55 },
66 "tauri" : " 1.0.0-rc.8" ,
77 "tauri-build" : " 1.0.0-rc.7"
Original file line number Diff line number Diff line change @@ -494,7 +494,6 @@ struct VersionBlock {
494494 version : String ,
495495 target_version : String ,
496496 indentation : usize ,
497- skip_update_check : bool ,
498497}
499498
500499impl VersionBlock {
@@ -504,15 +503,9 @@ impl VersionBlock {
504503 version : version. into ( ) ,
505504 target_version : "" . into ( ) ,
506505 indentation : 2 ,
507- skip_update_check : false ,
508506 }
509507 }
510508
511- fn skip_update_check ( mut self ) -> Self {
512- self . skip_update_check = true ;
513- self
514- }
515-
516509 fn target_version ( mut self , version : impl Into < String > ) -> Self {
517510 self . target_version = version. into ( ) ;
518511 self
@@ -531,7 +524,7 @@ impl VersionBlock {
531524 self . version. clone( )
532525 }
533526 ) ;
534- if !self . target_version . is_empty ( ) && ! self . skip_update_check {
527+ if !( self . version . is_empty ( ) || self . target_version . is_empty ( ) ) {
535528 let version = semver:: Version :: parse ( self . version . as_str ( ) ) . unwrap ( ) ;
536529 let target_version = semver:: Version :: parse ( self . target_version . as_str ( ) ) . unwrap ( ) ;
537530 if version < target_version {
@@ -630,7 +623,6 @@ pub fn command(_options: Options) -> Result<()> {
630623 . collect :: < String > ( ) ,
631624 )
632625 . target_version ( metadata. js_cli . node . replace ( ">= " , "" ) )
633- . skip_update_check ( )
634626 . display ( ) ;
635627
636628 VersionBlock :: new (
You can’t perform that action at this time.
0 commit comments