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
pre-commit requires system-installed dotnet #2314
Comments
the message is not wrong? is there something you don't understand about it? |
I don't know what system-installed dotnet means. I don't mind installing it, but IMHO we need more information here as to what this means. |
do you have dotnet installed on your system? |
Yes:
|
fill out the issue template? |
What is system-installed? Is there another option, e.g. local install? How do I make sure it's system-installed? |
|
you haven't shown your |
I didn't think it mattered, since I was testing only my new hook? This is it: # See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: c:\Dev\checkov\hook\my-hook
rev: v1.0.1
hooks:
- id: my-hook
stages: [commit-msg]
default_language_version:
dotnet: dotnet
default_stages: [commit, push, post-merge, post-checkout]
#fail_fast: true
|
ok why do you have |
I saw it one of the examples. I can definitely remove that. |
That seems to have solved the issue, thank you! |
which example? |
It was this example: default_language_version:
python: python3.7 https://pre-commit.com/#pre-commit-configyaml---top-level It referred to python and not dotnet, but was thinking that maybe I could specify dotnet3.1 or dotnet6 or something, although I didn't see much in the documentation about what the valid options were |
yeah there are no such valid values for |
Ok, thanks for solving my problem, but the error just isn't very clear, IMHO |
yeah I guess it's just weird that you would have reached for an option you didn't need to solve a problem you didn't have -- I've added the selected values in #2315 |
describe your issue
I was trying to write a commit-msg hook in dotnet and got this error:
pre-commit --version
2.17.0
.pre-commit-config.yaml
Execution:
~/.cache/pre-commit/pre-commit.log (if present)
version information
error information
The text was updated successfully, but these errors were encountered: