From c9b2139b1e7e1240db792173118b7d54d16c5f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 28 Feb 2024 21:35:02 +0000 Subject: Revert "fix(publish): error if there are uncommitted changes (#22613)" (#22625) This reverts commit c2c4e745a5db4f2e53aa70bf22b6c828fa1b4040. --- cli/args/flags.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'cli/args') diff --git a/cli/args/flags.rs b/cli/args/flags.rs index a3424ab64..03e0c364c 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -302,7 +302,6 @@ pub struct PublishFlags { pub token: Option, pub dry_run: bool, pub allow_slow_types: bool, - pub allow_dirty: bool, pub provenance: bool, } @@ -2405,14 +2404,9 @@ fn publish_subcommand() -> Command { .action(ArgAction::SetTrue), ) .arg( - Arg::new("allow-dirty") - .long("allow-dirty") - .help("Allow publishing if the repository has uncommited changed") - .action(ArgAction::SetTrue), - ).arg( Arg::new("provenance") .long("provenance") - .help("From CI/CD system, publicly links the package to where it was built and published from") + .help("From CI/CD system, publicly links the package to where it was built and published from.") .action(ArgAction::SetTrue) ) .arg(check_arg(/* type checks by default */ true)) @@ -3866,7 +3860,6 @@ fn publish_parse(flags: &mut Flags, matches: &mut ArgMatches) { token: matches.remove_one("token"), dry_run: matches.get_flag("dry-run"), allow_slow_types: matches.get_flag("allow-slow-types"), - allow_dirty: matches.get_flag("allow-dirty"), provenance: matches.get_flag("provenance"), }); } @@ -8589,7 +8582,6 @@ mod tests { "publish", "--dry-run", "--allow-slow-types", - "--allow-dirty", "--token=asdf", ]); assert_eq!( @@ -8599,7 +8591,6 @@ mod tests { token: Some("asdf".to_string()), dry_run: true, allow_slow_types: true, - allow_dirty: true, provenance: false, }), type_check_mode: TypeCheckMode::Local, @@ -8618,7 +8609,6 @@ mod tests { subcommand: DenoSubcommand::Publish(PublishFlags { token: Some("asdf".to_string()), dry_run: false, - allow_dirty: false, allow_slow_types: false, provenance: true, }), -- cgit v1.2.3