-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add brew and apt support #349
Comments
I feel like we should have a better distribution strategy, but I don't think any plans are set at the moment. (cc @penelopezone if you've got thoughts on this.) My first thought is that having to actually build the Ruby checkout might make something like |
I think
Honestly, the package manager approach would probably be most familiar to folks, and |
Strong 👍 we should do brew and apt but not cargo |
brew fails if you run
|
@matthewford how is brew involved here? What's the original command you're running? |
@reese my recipe is here: https://github.com/matthewford/homebrew-core/tree/bump-rubyfmt-0.8 I don't think it's a brew issue specifically I see there was an old closed issue with the same error |
Homebrew/homebrew-core#88103 (comment) this is the same issue |
@reese using your homebew PR I see a similar issue:
|
I think you're pointing to several different issues here, the issue on my PR, #340, and the |
Mine is because we rely on a git checkout, so we probably need to actually pull the submodule first, your error is because |
#340 is specific to M1 and is referring to an error in the build script, that's separate from either of these |
@reese I got around the it's not a git dir, by cloning in this commit matthewford/homebrew-core@649219c, but then ran into the other issue about |
Right, I'm saying the M1 bit is not what you're running into. You can either just |
@reese I'm struggling to get this to compile via homebrew, I tried adding
but then still getting this error: Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } |
Can you give the full error output? There should be more above that line. |
Unfortunately there isn't any
|
I don't think I have any immediate answers then, I'm debugging the same thing but it builds fine outside of brew, so it's definitely something related to the brew setup (which I'm not at all familiar with). |
If you use the debug flag to keep the tmp dir around.
|
@reese that last commit works well. Thanks for this! |
Looks like you already saw it, but just for posterity in case anyone else sees this, I'm updating the brew formula here, and I think the missing files mentioned in the thread were probably @matthewford thanks for taking a look! I definitely just took all the git bits from your branch to make the submodule stuff work, your help was much appreciated! |
Ah dang, so one issue here: @penelopezone I don't think |
I mean call it 0.8.1 and ship it I guess? That seems like a very weird arbitrary constraint but I have no issues with that |
We might just be able to un-check the |
I'm just gonna try unchecking it and see if that works 🤷 |
why is homebrew like this |
Ok yeah just unchecking the box worked, thanks brew very cool. Now just gotta make sure all the builds work |
Just an update for the folks following along at home, the current release is now out on Still a WIP on getting |
For anyone else installing, I had to run |
Hi @reese, hope you're good! Wondering if there are plans to add this as a Cargo package so you can
cargo install rubyfmt
?I have a few other linting plugins that work that way that I use from Neovim (example), and they seem to nicely make their way to my
$PATH
without much more work. Thanks!The text was updated successfully, but these errors were encountered: