mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Update n2 [action required]
Make sure to run tools/install-n2 after updating to this commit. n2 have merged in some changes we were previously hosting in a fork, but the parsing of the flags was altered.
This commit is contained in:
parent
1c8c5a41f5
commit
8e13e6bfc1
6 changed files with 14 additions and 14 deletions
|
@ -125,7 +125,7 @@ impl BuildAction for GenPythonProto {
|
||||||
build.add_outputs("", python_outputs);
|
build.add_outputs("", python_outputs);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn hide_last_line(&self) -> bool {
|
fn hide_progress(&self) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,7 @@ pub trait BuildAction {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
fn hide_last_line(&self) -> bool {
|
fn hide_progress(&self) -> bool {
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -271,14 +271,14 @@ impl BuildStatement<'_> {
|
||||||
stmt.rule_variables.push(("pool".into(), pool.into()));
|
stmt.rule_variables.push(("pool".into(), pool.into()));
|
||||||
}
|
}
|
||||||
if have_n2 {
|
if have_n2 {
|
||||||
stmt.rule_variables.push((
|
if action.hide_success() {
|
||||||
"hide_success".into(),
|
stmt.rule_variables
|
||||||
(action.hide_success() as u8).to_string(),
|
.push(("hide_success".into(), "1".into()));
|
||||||
));
|
}
|
||||||
stmt.rule_variables.push((
|
if action.hide_progress() {
|
||||||
"hide_last_line".into(),
|
stmt.rule_variables
|
||||||
(action.hide_last_line() as u8).to_string(),
|
.push(("hide_progress".into(), "1".into()));
|
||||||
));
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stmt
|
stmt
|
||||||
|
|
|
@ -252,7 +252,7 @@ impl BuildAction for SvelteCheck {
|
||||||
build.add_output_stamp(format!("tests/svelte-check.{hash}"));
|
build.add_output_stamp(format!("tests/svelte-check.{hash}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn hide_last_line(&self) -> bool {
|
fn hide_progress(&self) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,7 +146,7 @@ impl BuildAction for PythonTypecheck {
|
||||||
build.add_output_stamp(format!("tests/python_typecheck.{hash}"));
|
build.add_output_stamp(format!("tests/python_typecheck.{hash}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn hide_last_line(&self) -> bool {
|
fn hide_progress(&self) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -259,7 +259,7 @@ impl BuildAction for PythonTest {
|
||||||
build.add_output_stamp(format!("tests/python_pytest.{hash}"));
|
build.add_output_stamp(format!("tests/python_pytest.{hash}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn hide_last_line(&self) -> bool {
|
fn hide_progress(&self) -> bool {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cargo install --git https://github.com/ankitects/n2.git --rev 0de7aa35bf90a4764a54a14e76b8098d65eb3a14
|
cargo install --git https://github.com/evmar/n2.git --rev 53ec691df749277104d1d4201a344fe4243d6d0a
|
||||||
|
|
Loading…
Reference in a new issue