-
Notifications
You must be signed in to change notification settings - Fork 251
Copy lockfiles when no package_filters #1658
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
qlty-check/src/tool/php/composer.rs:216
- [nitpick] Consider using consistent log formatting specifiers (e.g. using {} with .display() like in other parts) for lock file paths to improve consistency across the codebase.
debug!(
"Copying lock file from {:?} to {:?}",
lock_file, staging_lock_file
);
Diff Coverage for cli: The code coverage on the diff in this pull request is 94.9%. Total Coverage for cli: This PR will increase coverage by 0.08%. File Coverage Changes
🛟 Help
|
2 new issues
|
@marschattha on the version check, what do you think of this?:
|
Thinking and doing the prototype of that, might not be a good idea as it would stop checking for a lot more cases than it needs to as it is find to do that when the version is latest or known_good, just not ideal when installing using lockfile. |
Hmm, I think the issue here is that the version check does two different, important things:
We can get the benefit of number 1 by running the version command and simply not validating the output. So, what if we break down the concept of a version check into a validated version check which checks the output vs. an invalidated version check which just makes sure it exits 0. Would that help? |
Ah we were already skipping version check for ruby and node packages when using package files, was just missing it in php. |
Just saw this, yup that makes sense, we should do that in a separate PR. |
850a42a
to
0223fb3
Compare
0223fb3
to
56f7f56
Compare
A common issue I have noticed in testing this is that if the version of the linter in the lockfile is specified to be different than in qlty.toml (often the default known_good_version) we get the version mismatch error during version check post tool install.
Maybe we should skip version check in this case?