Skip to content

Make ccache-action respect environment variables - #217

Merged
hendrikmuhs merged 3 commits into
hendrikmuhs:mainfrom
TrentHouliston:main
Jul 23, 2024
Merged

hendrikmuhs merged 3 commits into
hendrikmuhs:mainfrom
TrentHouliston:main

Conversation

@TrentHouliston

Copy link
Copy Markdown
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
Copy Markdown
Owner

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

@hendrikmuhs

Copy link
Copy Markdown
Owner

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

@hendrikmuhs

hendrikmuhs commented Jul 22, 2024 •

Copy link
Copy Markdown
Owner

@krlmlr WDYT? Does this solve your use case?

@hendrikmuhs

Copy link
Copy Markdown
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
@TrentHouliston

Copy link
Copy Markdown
Contributor Author

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

@krlmlr

krlmlr commented Aug 1, 2024

Copy link
Copy Markdown
Contributor

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