Repository navigation
fix(mise): move commands from [alias] to [tasks] #85
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ denojs = "latest" | |
| # Package managers | ||
| pnpm = "latest" | ||
| cargo = "latest" | ||
| go-task = "latest" | ||
| just = "latest" | ||
|
|
||
| # Formatting & Linting | ||
| shfmt = "latest" | ||
|
|
@@ -30,9 +30,15 @@ gnu-grep = "latest" | |
| # Common environment variables | ||
|
|
||
| # Task runner alias | ||
| [alias] | ||
| task = "go-task" | ||
| build = "cargo build --release" | ||
| test = "cargo test" | ||
| lint = "bun install --frozen-lockfile && bunx --no-install --bun prettier --check ." | ||
| fmt = "bun install --frozen-lockfile && bunx --no-install --bun prettier --write ." | ||
|
|
||
| [tasks.build] | ||
| run = "cargo build --release" | ||
|
|
||
| [tasks.test] | ||
| run = "cargo test" | ||
|
Comment on lines
+34
to
+38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When invoked from the repository root, the newly registered build and test tasks both fail immediately because their Cargo commands cannot find a Useful? React with 👍 / 👎. |
||
|
|
||
| [tasks.lint] | ||
| run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --check ." | ||
|
|
||
| [tasks.fmt] | ||
| run = "bun install --frozen-lockfile && bunx --no-install --bun prettier --write ." | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: hyperpolymath/blocky-writer
Length of output: 1799
Root-level
buildandtesttasks cannot find a Cargo manifest.mise.tomlhas no rootCargo.toml. Thebuildandtesttasks runcargowithout a manifest path, so mise starts them from the repository root and Cargo exits before it compiles or tests the crate. The Rust core lives inrust/pdftool_core/, and the README already runs these commands with--manifest-path rust/pdftool_core/Cargo.toml.Pass the same manifest path in both tasks:
Suggested fix