Repository navigation
[229] Fix issue with --version option - #256
Merged
Merged
Conversation
borland667
force-pushed
the
229-fix-issue-with-version
branch
2 times, most recently
from
March 21, 2024 16:56
f6f82f2 to
1916c82
Compare
Contributor
|
@borland667 |
borland667
force-pushed
the
229-fix-issue-with-version
branch
from
April 11, 2024 17:15
1916c82 to
691b38e
Compare
Pull Request Test Coverage Report for Build 8650773559Details
💛 - Coveralls |
borland667
force-pushed
the
229-fix-issue-with-version
branch
from
April 11, 2024 17:23
691b38e to
daadd10
Compare
diego-ojeda-binbash
approved these changes
Apr 11, 2024
diego-ojeda-binbash
added a commit
that referenced
this pull request
Nov 15, 2026
…oject (#359) - get_root_path runs git with LC_ALL=C, so "not a git repository" is recognized in any locale (#229), and turns any other git error (e.g. dubious ownership) into an ExitError with git's message instead of returning None, which made every command crash with a TypeError - The import-time fallbacks catch that ExitError instead of TypeError (the workaround from #256); the command reports it when it loads the configuration - State.paths raises "Out of Leverage project context" when no project was found, so tofu/terraform/kubectl/tfautomv fail with that message instead of an AttributeError. Commands that work anywhere (--version, --help, run) are unaffected Closes #356 Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
rootvariable and and exception happened, root cannot be accessed because it does not exist.rootwhen there is no exception happening.Why?
leverage --version. Otherwise the command would just exit with an unhandled exception like it is described in the issue.References
closes #229Before release
Review the checklist here