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
fix macos build: update ipfs dependency to v0.50.2 #612
Conversation
BTW, I also hit this issue related to the new M1 macs: #613 But it's a pretty edgy edge case and probably won't affect that many people. |
Thank you @yusefnapora! I'm going to defer to @zebateira on reviewing this one since he's been more involved in investigating our earlier issues with |
Hmm, I think I may be making things more confusing by having two versions of nodejs installed. If I completely delete With version 15.8.0, compiled for apple silicon:
But, if I install with v14.15.5 (Intel version), I get this:
as well as a warning about the package lock file using version 2 of the lockfile syntax when I do the
So it looks like the "fix" from this branch only works with node v15 and the new lockfile syntax, although the install still succeeds using the v2 lockfile (on my machine). I just added a commit that bumps our
Assuming that updating ipfs doesn't break anything, we should be good :) |
btw, I forgot to mention that I used v14 for the previous commit, so it has the version 1 lockfile. |
hmm... I'll have a go at running the tests locally and see if anything jumps out at me |
Unfortunately updating IPFS in ProtoSchool is not as straightforward as it could be: because our code challenges and content directly depend on a specific version of IPFS, we need to carefully analyze each IPFS release and check the impact on the code and content. Code migrations are easier than content updates. But this is a good call out for this issue since there are somethings that we can improve to make this process more streamlined:
Tracking this here. It also takes into account that libp2p might need this as well. |
@yusefnapora can you make your local build work without updating IPFS? We can temporarily only use node v15, work on the new libp2p tute, and then we can come back to this and upgrade IPFS. |
I can't seem to make it work in node v15. And since it doesn't work in fleek anyways, I guess we need to tackle the IPFS dep update. |
I think I found a version of IPFS that's new enough to fix the issue, but not new enough to cause it's own issues 😄 That is, |
Yay, the tests passed locally!
|
@yusefnapora yay! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
I wasn't able to build the project when first checking this repo out. I'm running on an M1 MacBook Air running Big Sur (version 11.1).
I think this error is related to old versions of some dependencies being pinned in
package-lock.json
and forcing an old version ofnode-gyp
, which fails on recent builds of Mac OS.I was able to regenerate the
package-lock.json
without updating any dependencies inpackage.json
, and now the build succeeds. Thebcrypto
package that was failing to build on the main branch isn't even pulled in anymore, so one of our transitive dependencies must have updated.Hopefully closes #576