-
Notifications
You must be signed in to change notification settings - Fork 544
Allow configuring tmpDir using PHPSTAN_TMPDIR environment variable #1717
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
2cbaa48 to
d137727
Compare
there is another proposal which might also fix your problem: #1469
the PR will use a better default logic so phpstan will in the end use a separate result-cache per phpstan-config.
could you check whether this would also work for you?
@staabm that seems to be a different usecase. I would actually want different cache directories depending on the context the analysis is running in.
Hi, environment- and machine-specific configuration options are already possible via: https://phpstan.org/config-reference#multiple-files
Alternative proposal and more general one is to allow any environment variable to be referenced in the configuration.
Uh oh!
There was an error while loading. Please reload this page.
It'd be useful if the
tmpDiris configurable using an environment variable. Right now it's only configurable inphpstan.neon > parameters > tmpDir. For example projects without tmpDir configured for the user, could still have/need a consistent tmpDir in CI. This way we can more easily persist the cache result for multiple projects, for subsequent CI runs.Alternatively this could be implemented using a command option (
analyse --tmpDir=..)