-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
stat $TMPDIR/bud/cache/4Lh3YtPjLfk: not a directory #27
Comments
You could temporary use tj/gobinaries curl -sf https://gobinaries.com/livebud/bud | sh |
The darwin/amd64 binaries work okay through Rosetta for now. |
tj/gobinaries is pretty cool though! |
Although it fails to work for me:
|
Hey @alecthomas, thanks for stopping by! I'm a fan of your work. I've been told it works through Rosetta emulation:
But I'll add native support for darwin/arm64 this weekend. Closing as a duplicate of #6. |
🙏 |
Please try again: curl -sf curl https://raw.githubusercontent.com/livebud/bud/main/install.sh | sh Wasn't able to test this since I'm not on an M1. I did see some V8 warnings, so let's see 😅 |
Nice, thanks! It does run, but it fails to serve or build with:
|
Ah interesting, that shouldn't be a directory, it's actually a cached binary. Looking into it! |
|
Deleting that file fixed it, but I have no idea how it got there 🤔 |
I'll look into this after dinner 😄 |
Got the same issue. |
Looked into it but haven't been able to repro it. A couple questions:
The problem appears to be somewhere in https://github.com/livebud/bud/blob/main/internal/buildcache/buildcache.go. What's odd is the "not a directory" error only seems to occur within an |
I suspect the error occurs with Open() when an intermediate path element is a file. eg. |
Yes, latest M1. Maybe I can try to fix it, if you cannot reproduce it. |
Thanks @kevwan, I think I'm unable to repro it because either it works on darwin/amd64 or because I'm still on OSX Catalina (v10.15). I'm tempted to move the cache and tmp directories into your project's What do you think? |
I think self-contained is great. I think both clear architecture and better user experience are important. If we can ship the project with the usage stable for further changes, I'd like to provide better user experience. And we improve the design later. My point is compatibility concern. |
Would you mind pulling down the branch in the following PR and testing if this fixes your problem? #50 You can get Bud running locally by following the Contributor Guide. |
Ah, it looks like you're not on latest. I'm going to create a new release now, hang tight. |
Thanks!
The text was updated successfully, but these errors were encountered: