Skip to content
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

fixes a few problems with flakebox shell tooling #168

Merged
merged 9 commits into from
Aug 9, 2024

Conversation

taliyahwebb
Copy link
Contributor

  • mkShells (packages argument is no longer ignored)
  • pre-commit / just lint gives more descriptive output for out of date cargo dependencies
  • just format catches all .nix files and no longer ignores subdirectories
  • commit-msg hook no longer suggests non existing git option (typo?)

`echo **.nix` only lists files ending in `.nix` in the current dir and ignores subdirectories
… output

The output that the `pre-commmit` hook, and in extension `just lint` produces
when this command is run cannot be attributed to cargo for first time users.
This commit adds marker at the end of the line indicating the command output stems from (cargo)
As per cargo test man page (`cargo help test`) a simple `cargo test`
already tests the doc tests of the lib target
(which is what --doc also does)

Additionally `cargo test --doc` throws an error if there are no doc
tests available
@@ -38,7 +38,6 @@ final-check: lint clippy
if [ ! -f Cargo.toml ]; then
cd {{invocation_directory()}}
fi
cargo test --doc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm...

As per cargo test man page (`cargo help test`) a simple `cargo test`
already tests the doc tests of the lib target
(which is what --doc also does)

Additionally `cargo test --doc` throws an error if there are no doc
tests available

@dpc dpc merged commit 703a23a into rustshop:master Aug 9, 2024
4 of 5 checks passed
@dpc
Copy link
Contributor

dpc commented Aug 9, 2024

Let's give it a go. Thanks!

@taliyahwebb taliyahwebb deleted the tools-fixes branch August 14, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants