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
Psalm reports errors on GitHub Actions but not locally #4464
Comments
Hey @sebastianbergmann, can you reproduce the issue on https://psalm.dev ? |
I also have this issue. FWIW if you switch your required version to |
That does not explain the difference in behaviour locally vs. GitHub Actions I described. |
psalm.dev is using |
@davidbyoung I think you're chasing up the wrong tree, something is definitely a little broken but I'm not sure where. |
OH @sebastianbergmann I think I know what's happening. Psalm uses the composer lockfile to figure out whether its version has changed, and then to bust cache, but you're short-circuiting that by using the Phar. |
Not sure whether this is a bug in Psalm but I am observing this weird behaviour right now:
When I run Psalm on https://github.com/sebastianbergmann/comparator locally then I get:
When the same version of Psalm (with the same configuration and baseline) is run on the same code on GitHub Actions then I get:
See https://github.com/sebastianbergmann/comparator/runs/1335576035?check_suite_focus=true for details.
This started happening after the update to Psalm 4.1.0 and only seems to affect
PropertyNotSetInConstructor
issues that are ignored by the baseline.The text was updated successfully, but these errors were encountered: