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

Critical fix: load home path with os.homedir #24

Merged
merged 1 commit into from
Jan 17, 2023

Conversation

PaulRBerg
Copy link
Contributor

@PaulRBerg PaulRBerg commented Jan 17, 2023

This PR fixes the issue reported by @mds1 and @davidlaprade here:

gitcoinco/Alpha-Governor-Upgrade#12

I'm sorry guys, I messed up the cache implementation. It looks like the tilde symbol ~ is not available in Node.js.
I had to use os.homedir() instead of ~/. Proof that this works now:

https://github.com/PaulRBerg/foundry-template/actions/caches

I ran the new implementation in my foundry-template a few dozen times to make sure that it works properly now. See a few screenshots below.

On the bright side, this issue didn't cause any trouble to end users. It just didn't do the caching, that's all - it didn't save any bogus cache.

cache-save

cache-restored

refactor: define "PLATFORM" once in the global scope
@gakonst gakonst merged commit 048ecf3 into foundry-rs:master Jan 17, 2023
PaulRBerg added a commit to PaulRBerg/foundry-toolchain that referenced this pull request Jan 26, 2023
refactor: define "PLATFORM" once in the global scope
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.

None yet

2 participants