Skip to content

Commit

Permalink
cargo near deploy build-non-reproducible-wasm && cargo near deploy bu…
Browse files Browse the repository at this point in the history
…ild-reproducible-wasm
  • Loading branch information
dj8yf0μl committed Feb 6, 2025
1 parent 4a4f2e4 commit af062ec
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ use crate::commands::build as build_command;
#[interactive_clap(skip_default_from_cli)]
pub struct DeployOpts {
#[interactive_clap(flatten)]
/// Specify a build command args:
/// Build non-reproducible wasm step options
build_command_opts: build_command::actions::non_reproducible_wasm::BuildOpts,
#[interactive_clap(skip_default_input_arg)]
/// What is the contract account ID?
/// What is the target contract account ID to deploy to?
contract_account_id: near_cli_rs::types::account_id::AccountId,
#[interactive_clap(subcommand)]
initialize: InitializeMode,
Expand Down
17 changes: 14 additions & 3 deletions cargo-near/src/commands/deploy/actions/reproducible_wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,24 @@ use crate::commands::build as build_command;
#[interactive_clap(skip_default_from_cli)]
pub struct DeployOpts {
#[interactive_clap(flatten)]
/// Specify a build command args:
/// Build reproducible wasm step options
build_command_opts: build_command::actions::reproducible_wasm::BuildOpts,
/// whether to check that code has been pushed to repository during docker build
/// Whether to check that code has been pushed to repository during docker build
///
/// When flag is not specified, a sanity check that code being built has been pushed to remote repo
/// is done before building+deploying a reproducible build.
/// This flag is used to skip this sanity check,
///
/// Need for this was flag was discovered when deploying on Github into temporary accounts,
/// created in CI for each pull request to test the PR's code.
/// Merge commits were created for each CI run, which resided neither in base, nor target branches.
/// These temporary per-PR contracts didn't need to be linked back to their source code,
/// i.e. did not need reproducibility verification.
#[interactive_clap(long)]
#[interactive_clap(verbatim_doc_comment)]
skip_git_remote_check: bool,
#[interactive_clap(skip_default_input_arg)]
/// What is the contract account ID?
/// What is the target contract account ID to deploy to?
contract_account_id: near_cli_rs::types::account_id::AccountId,
#[interactive_clap(subcommand)]
initialize: InitializeMode,
Expand Down

0 comments on commit af062ec

Please sign in to comment.