File tree Expand file tree Collapse file tree 2 files changed +5
-26
lines changed Expand file tree Collapse file tree 2 files changed +5
-26
lines changed Original file line number Diff line number Diff line change
1
+ - Relaxed repo URI validation in ext:dev: publish (#5698 ).
Original file line number Diff line number Diff line change @@ -604,33 +604,11 @@ export async function publishExtensionVersionFromRemoteRepo(args: {
604
604
throw new FirebaseError ( "Repo URI is required but not currently set." ) ;
605
605
}
606
606
}
607
- if ( extension ?. repoUri && extension . repoUri !== repoUri ) {
608
- throw new FirebaseError (
609
- `Repo URI '${ clc . bold ( args . repoUri ) } ' does not match repo URI '${ clc . bold (
610
- extension . repoUri !
611
- ) } ' already associated with Extension ${ clc . bold ( extensionRef ) } . Repo URI cannot be changed.`
612
- ) ;
613
- }
614
- if ( ! extension ?. repoUri ) {
615
- logger . info (
616
- `\n${ clc . red ( "Warning:" ) } You are about to associate repo URI ${ clc . bold (
617
- repoUri
618
- ) } with Extension ${ clc . bold (
619
- extensionRef
620
- ) } . This cannot be changed. All future verifiable versions must be published from this repo. ` +
621
- `You can continue publishing unverifiable versions from local source.`
622
- ) ;
623
- const confirmed = await confirm ( {
624
- nonInteractive : args . nonInteractive ,
625
- force : args . force ,
626
- default : false ,
627
- } ) ;
628
- if ( ! confirmed ) {
629
- return ;
630
- }
631
- } else {
607
+ if ( extension ?. repoUri ) {
632
608
logger . info (
633
- `Extension ${ clc . bold ( extensionRef ) } is published from ${ clc . bold ( extension ?. repoUri ) } .`
609
+ `Extension ${ clc . bold ( extensionRef ) } is published from ${ clc . bold (
610
+ extension ?. repoUri
611
+ ) } . Use --repo to change this repo.`
634
612
) ;
635
613
}
636
614
You can’t perform that action at this time.
0 commit comments