cli: Add (hidden) --use-deprecated-loader flag to solana deploy (bp #11675) (#11866)

* Add (hidden) --use-deprecated-loader flag to `solana deploy`

(cherry picked from commit de736e00ad)

# Conflicts:
#	cli/src/cli.rs
#	cli/tests/deploy.rs

* resolve conflicts

Co-authored-by: Michael Vines <mvines@gmail.com>
Co-authored-by: Jack May <jack@solana.com>
This commit is contained in:
mergify[bot]
2020-08-27 00:36:12 +00:00
committed by GitHub
parent 5f85ecd457
commit 97c3ff8a4f
2 changed files with 63 additions and 21 deletions

View File

@@ -55,7 +55,10 @@ fn test_cli_deploy_program() {
config.signers = vec![&keypair];
process_command(&config).unwrap();
config.command = CliCommand::Deploy(pathbuf.to_str().unwrap().to_string());
config.command = CliCommand::Deploy {
program_location: pathbuf.to_str().unwrap().to_string(),
use_deprecated_loader: false,
};
let response = process_command(&config);
let json: Value = serde_json::from_str(&response.unwrap()).unwrap();