Skip to content

Commit

Permalink
fix(libmake): ✅ updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Dec 31, 2023
1 parent 41e50b9 commit 4414fe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[alias]
xtask = "run --package xtasks --bin xtasks --"
xtask = "run --package libmake --bin libmake --"
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ use libmake::run;
/// This is the main entry point for the libmake application.
fn main() {
// Call the `run()` function from the `libmake` module.
let _ = xtasks::tasks::ci::CIBuilder::default().run();
if args.len() > 1 && args[1] == "xtask" {

Check failure on line 39 in src/main.rs

View workflow job for this annotation

GitHub Actions / Lint

cannot find value `args` in this scope

Check failure on line 39 in src/main.rs

View workflow job for this annotation

GitHub Actions / Lint

cannot find value `args` in this scope

Check failure on line 39 in src/main.rs

View workflow job for this annotation

GitHub Actions / Check

cannot find value `args` in this scope

Check failure on line 39 in src/main.rs

View workflow job for this annotation

GitHub Actions / Check

cannot find value `args` in this scope

Check failure on line 39 in src/main.rs

View workflow job for this annotation

GitHub Actions / Test

cannot find value `args` in this scope

Check failure on line 39 in src/main.rs

View workflow job for this annotation

GitHub Actions / Test

cannot find value `args` in this scope
// The user ran the "xtask" command, so execute your code
let _ = xtasks::tasks::ci::CIBuilder::default().run();
}

if let Err(ref e) = run() {
eprintln!("Error running libmake: {e}");
Expand Down

0 comments on commit 4414fe1

Please sign in to comment.