File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -2000,6 +2000,8 @@ impl Step for HashSign {
2000
2000
}
2001
2001
2002
2002
fn run ( self , builder : & Builder < ' _ > ) {
2003
+ // This gets called by `promote-release`
2004
+ // (https://github.com/rust-lang/rust-central-station/tree/master/promote-release).
2003
2005
let mut cmd = builder. tool_cmd ( Tool :: BuildManifest ) ;
2004
2006
if builder. config . dry_run {
2005
2007
return ;
@@ -2010,10 +2012,14 @@ impl Step for HashSign {
2010
2012
let addr = builder. config . dist_upload_addr . as_ref ( ) . unwrap_or_else ( || {
2011
2013
panic ! ( "\n \n failed to specify `dist.upload-addr` in `config.toml`\n \n " )
2012
2014
} ) ;
2013
- let file = builder. config . dist_gpg_password_file . as_ref ( ) . unwrap_or_else ( || {
2014
- panic ! ( "\n \n failed to specify `dist.gpg-password-file` in `config.toml`\n \n " )
2015
- } ) ;
2016
- let pass = t ! ( fs:: read_to_string( & file) ) ;
2015
+ let pass = if env:: var ( "BUILD_MANIFEST_DISABLE_SIGNING" ) . is_err ( ) {
2016
+ let file = builder. config . dist_gpg_password_file . as_ref ( ) . unwrap_or_else ( || {
2017
+ panic ! ( "\n \n failed to specify `dist.gpg-password-file` in `config.toml`\n \n " )
2018
+ } ) ;
2019
+ t ! ( fs:: read_to_string( & file) )
2020
+ } else {
2021
+ String :: new ( )
2022
+ } ;
2017
2023
2018
2024
let today = output ( Command :: new ( "date" ) . arg ( "+%Y-%m-%d" ) ) ;
2019
2025
You can’t perform that action at this time.
0 commit comments