@@ -385,7 +385,7 @@ class Updater {
385
385
const rootRepoVersion = this . getExpectedVersion ( rootFullRepoName )
386
386
const branch = [ 'auto-update' , rootRepoOwner , rootRepoName , rootRepoVersion ] . join ( '-' )
387
387
console . log ( `Creating branch ${ branch } ...` )
388
- await exec ( `git checkout -b ${ branch } ` )
388
+ await exec ( `git checkout -b ${ branch } ` , { strict : true } )
389
389
390
390
// TODO: only update dependencies that are updatable
391
391
@@ -403,20 +403,20 @@ class Updater {
403
403
404
404
console . log ( `Updating mod ${ fullModName } to ${ deps . join ( ', ' ) } ...` )
405
405
406
- await exec ( `go get ${ deps . join ( ' ' ) } ` )
406
+ await exec ( `go get ${ deps . join ( ' ' ) } ` , { strict : true } )
407
407
408
408
console . log ( `Cleaning up mod ${ fullModName } ...` )
409
- await exec ( `go mod tidy` )
409
+ await exec ( `go mod tidy` , { strict : true } )
410
410
}
411
411
412
412
console . log ( `Committing update ...` )
413
413
414
414
const message = `Update to ${ capitalizeFirstLetter ( rootRepoName ) } ${ rootRepoVersion } `
415
415
416
- await exec ( `git commit -a -m "${ message } "` )
416
+ await exec ( `git commit -a -m "${ message } "` , { strict : true } )
417
417
418
418
console . log ( `Pushing update ...` )
419
- await exec ( `git push -u origin ${ branch } "` )
419
+ await exec ( `git push -u origin ${ branch } "` , { strict : true } )
420
420
421
421
console . log ( `Creating PR ...` )
422
422
@@ -540,14 +540,14 @@ class Releaser {
540
540
process . chdir ( dir )
541
541
542
542
console . log ( `Tagging ${ this . repo } version ${ this . version } ...` )
543
- await exec ( `git tag ${ tag } ` )
543
+ await exec ( `git tag ${ tag } ` , { strict : true } )
544
544
545
545
if ( this . modPath !== '' ) {
546
546
console . log ( `Pushing ${ this . repo } mod ${ this . modPath } version ${ this . version } ...` )
547
547
} else {
548
548
console . log ( `Pushing ${ this . repo } version ${ this . version } ...` )
549
549
}
550
- await exec ( `git push origin --tags` )
550
+ await exec ( `git push origin --tags` , { strict : true } )
551
551
552
552
console . log ( `Cleaning up clone of ${ this . repo } ` )
553
553
await rm ( dir , { recursive : true , force : true } )
@@ -707,7 +707,8 @@ async function gitClone(protocol: Protocol, fullRepoName: string, dir: string, b
707
707
console . error ( `unsupported protocol: ${ protocol } ` )
708
708
return
709
709
}
710
- await exec ( `git clone --depth 1 ${ branch ? `-b ${ branch } ` : "" } ${ prefix } ${ fullRepoName } ${ dir } ` )
710
+ const command = `git clone --depth 1 ${ branch ? `-b ${ branch } ` : "" } ${ prefix } ${ fullRepoName } ${ dir } `
711
+ await exec ( command , { strict : true } )
711
712
}
712
713
713
714
async function runWithConsoleGroup ( func : ( ) => Promise < boolean > ) : Promise < boolean > {
0 commit comments