Skip to content

Commit

Permalink
Merge pull request #139 from DeterminateSystems/fixup-home-manager
Browse files Browse the repository at this point in the history
Support single-platform evaluations for home manager
  • Loading branch information
grahamc authored Jun 17, 2024
2 parents fb0742c + 4a50c24 commit 2bbf2a5
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 20 deletions.
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.

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

/// Do less work on extremely large flakes.
///
/// 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.
///
/// Note: the behavior of this flag could change at any time, please don't count on it for anything specific.
#[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

0 comments on commit 2bbf2a5

Please sign in to comment.