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
Check git at startup #11167
Comments
I would like to do this issue |
I want to work on this issue. It is my first issue so, I want to get it right. I have added an esm Should I write the test cases to check the script? Or can I submit a PR with this script as is? |
There's two ways we ideally want to use such validation:
If you have written a tools script then it could satisfy (1) if it's added to I think if you submit (1) and incorporate it as part of |
I wrote the script and added it to lint but there is a catch ,when I try running the code I get this error: |
It's the file name underscore. Use "check-git-version.js" |
Oh, my bad I didn't change the filename. I will try that and get back to you. |
The workflow tests have passed now. Can you take a look? |
Raise a draft PR if you'd like a review |
We like to test it at runtime startup too, so no. 😉 |
Oh okay, figured it was worth checking! 😄 |
Has this issue been tested at runtime startup? |
This script is not the way it should be done, it should be as part of the application. |
I'd like to help with this one. |
checkout #9979 for a starter |
As far as I can see #9979 implements exactly what is required. I see that PR is Merged, but I don't see that changes in current renovate/lib/workers/global/initialize.ts Lines 37 to 47 in d7713a3
So my plan for fixing this issue would be: take PR #9979 as a base and basicly do the same. @viceice does that make sense? |
See #10106 IIRC it was failing on Windows CI |
Direct quote from yourself: 1
Footnotes |
I think we now have a label to force a full ci run to catch the error. 🤗 |
I tried to google "Windows CI", and no luck ( Could you please advice where I can find some info/instructions on how to run Renovate in Windows CI? |
This repo. We don't test in windows in PRs by default but we do once it hits main branch |
My plan for fixing this issue would be to take PR #9979 as a base and basicly do the same, but also run it in Windows and check why it doesn't work in Windows. Is it a good plan? |
As @viceice pointed out, I think we now have a way to run the full tests (including windows) on-demand in PRs. So I suggest re-raising the same code, getting the CI tests to run, and then investigating from there. |
Could you please advice how to enable the label for full ci run? Should I check the docs of GitHub Actions? https://docs.github.com/en/actions |
@olegkrivtsov Please open a draft pr, then we add |
🎉 This issue has been resolved in version 29.35.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
What would you like Renovate to be able to do?
Check git version and error if it's not correct.
Did you already have any implementation ideas?
We may need to make it a log error only and not exit immediately if there's the chance of false positives.
The text was updated successfully, but these errors were encountered: