-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Added a VERGEN_GIT_DIRTY output to git2 and gitcl #281
Conversation
Resolves #237 |
There's a mismatch in clippy lints - I expect from different versions of |
Just noticed it's in the check description! |
A couple of lint errors were firing on my machine (rustc 1.74) which aren't showing up on any of the CI runs which confuses me, since I'd expect them on nightly or beta; also the lint error that is showing up on the CI run is not showing up on my machine (probably a feature mismatch). In any case, there is a fix for both in the latest commit. |
If the lints fail again I'll take a look. The CI actually runs against the MSRV (1.70 right now), as well as nightly, beta, and stable. Looks like formatting failed. A quick |
Ach, I forgot to run fmt on the result from clippy. I've just pushed an update with the single comma removed that upset the formatting check. |
Ah yeah, they are all failing for the same reason. Just flip the if/else condition and that lint will be satisfied:
|
Fixed I hope. Is there a something that should be done about gix? |
For reference, there is a script at the top level |
|
Regarding |
Oh, they're mine! I'll fix them! |
I think those lints should be fixed. The remaining ones are issues with gix (actual compilation errors). I haven't removed them because it will muddy things once the gix stuff is added. I'm happy to fold those changes in (which should be pretty trivial) if you can advise how to do it. |
This should probably be considered a [WIP] until then. |
Just to clarify - the problems now are that some of the config gates have not been removed for gix, which means for example, the constants are not defined. Removing them is possible, but then one would just have to go through an undo all those changes. |
Yep, makes sense. I'll dig into |
I think I have a path forward with |
The How shall we handle the ignore untracked stuff on gix? We could gate the implementation to ignore or disallow that flag for gix? |
Regarding the tests, the setup is correct, but my initial implementation of the dirty check for |
Do you need any input from me for the time being? |
I toyed with diverging more from the general structure but I didn't want to commit a load of effort if it was not acceptable or broke other tests. If I did it from scratch I think I'd bring the directory naming inside the struct and use a random temp directory to avoid the issue of clean-up failure breaking subsequent runs. It should be generally extendable to directly test the output for a given emitted output over and above a regex. |
I did pull |
This code has been merged from #283 |
Currently no GIT_DIRTY output is provided for gix as it wasn't obvious how to use the API to do that.