From bdf6e57f428257ed803ce141bab91d7a053d895c Mon Sep 17 00:00:00 2001 From: Ian Wijma Date: Sat, 6 Apr 2024 21:02:31 +1100 Subject: [PATCH] Fixed build from failing --- .github/workflows/push.yaml | 4 ++-- src/commands/run.rs | 2 +- src/utils/file.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 9888cf4..f76211f 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -6,8 +6,8 @@ on: - release jobs: - release: - name: release ${{ matrix.target }} + push: + name: building runs-on: ubuntu-latest strategy: fail-fast: false diff --git a/src/commands/run.rs b/src/commands/run.rs index 7c5bf4a..3b0185a 100644 --- a/src/commands/run.rs +++ b/src/commands/run.rs @@ -113,7 +113,7 @@ fn execute_task(task: &Task) -> Result, String> { .arg(command) .current_dir(directory) .status() - .map_err(|err| err.to_string()); + .expect("Failed to execute command"); status.success() } }); diff --git a/src/utils/file.rs b/src/utils/file.rs index 4137c98..74e9eac 100644 --- a/src/utils/file.rs +++ b/src/utils/file.rs @@ -20,7 +20,7 @@ pub fn write_file_content(file_path: &PathBuf, content: &str) -> Result<(), Stri pub fn read_json_file Deserialize<'a>>(file_path: &PathBuf) -> Result { let content = read_file_content(file_path.clone())?; - let file_content: T = serde_json::from_str::(&content).map_err(|err| err.to_string()); + let file_content: T = serde_json::from_str::(&content).map_err(|err| err.to_string())?; Ok(file_content) }