Skip to content
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

Make ccache-action respect environment variables #217

Merged
merged 3 commits into from
Jul 23, 2024

Conversation

TrentHouliston
Copy link
Contributor

Currently, if environment variables are set for CCACHE_DIR or SCCACHE_DIR then this action will ignore them and hardcode its own.

This is a problem if CCACHE_DIR is set for example in a docker file environment which is very hard to eliminate

Fixes #96

I think this is a better solution than #165 as that one still suffers from an invalid operation if either of the environment variables are set.

@hendrikmuhs
Copy link
Owner

Nice! This seems fine to me, let's just run the tests.

@hendrikmuhs
Copy link
Owner

@TrentHouliston can you look into the errors? Seems easy to fix.

@hendrikmuhs
Copy link
Owner

hendrikmuhs commented Jul 22, 2024

@krlmlr WDYT? Does this solve your use case?

@hendrikmuhs
Copy link
Owner

Regardless of #165 this change is ready and makes sense.

Thanks for the contribution @TrentHouliston !
Do you require a release?

@hendrikmuhs hendrikmuhs merged commit 6f08740 into hendrikmuhs:main Jul 23, 2024
41 checks passed
@TrentHouliston
Copy link
Contributor Author

@hendrikmuhs A release would be good so I don't have to keep using my fork

@krlmlr
Copy link
Contributor

krlmlr commented Aug 1, 2024

Thanks. I'll review and get back here if problems arise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CCACHE_DIR environment variable is ignored by action
3 participants