Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support single-platform evaluations for home manager #139

Merged
merged 6 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95103,6 +95103,7 @@ var FlakeHubPushAction = class extends DetSysAction {
this.repository = inputs_exports.getString("repository");
this.directory = inputs_exports.getString("directory");
this.gitRoot = inputs_exports.getString("git-root");
this.myFlakeIsTooBig = inputs_exports.getBool("my-flake-is-too-big");
this.spdxExpression = inputs_exports.getString("spdx-expression");
this.errorOnConflict = inputs_exports.getBool("error-on-conflict");
this.includeOutputPaths = inputs_exports.getBool("include-output-paths");
Expand Down Expand Up @@ -95143,6 +95144,7 @@ var FlakeHubPushAction = class extends DetSysAction {
env.FLAKEHUB_PUSH_REPOSITORY = this.repository;
env.FLAKEHUB_PUSH_DIRECTORY = this.directory;
env.FLAKEHUB_PUSH_GIT_ROOT = this.gitRoot;
env.FLAKEHUB_PUSH_MY_FLAKE_IS_TOO_BIG = this.myFlakeIsTooBig.toString();
env.FLAKEHUB_PUSH_EXTRA_LABELS = this.extraLabels;
env.FLAKEHUB_PUSH_SPDX_EXPRESSION = this.spdxExpression;
env.FLAKEHUB_PUSH_ERROR_ON_CONFLICT = this.errorOnConflict.toString();
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,20 @@ pub(crate) struct FlakeHubPushCli {
)]
pub(crate) error_on_conflict: bool,

/// Single-system evaluation.
///
/// This flag is intended to limit the scope of evaluations which are too large to complete on one machine.
/// This flag should NOT be used to paper over evaluation errors across different architectures.
///
/// Please do not turn this flag on without opening an issue to decide if it applies to your scenario.
grahamc marked this conversation as resolved.
Show resolved Hide resolved
#[clap(
long,
env = "FLAKEHUB_PUSH_MY_FLAKE_IS_TOO_BIG",
value_parser = EmptyBoolParser,
default_value_t = false
)]
pub(crate) my_flake_is_too_big: bool,

#[clap(flatten)]
pub instrumentation: instrumentation::Instrumentation,

Expand Down
Loading
Loading