-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make binary available via OS distribution repositories #3
Comments
Yeah homebrew is super common on osx - it'd be great to be able to do |
Thanks for the link. I did a quick look and it looks like we need to:
So it looks quite doable! |
Since we will likely be releasing 1.0.0 soon, I'll look into this next. (Even if we don't get to this in 1.0.0 though, the prebuilt binaries are available from github releases as documented in https://github.com/ipinfo/cli#using-curlwget (note that this won't work until the repo is made public, of course)). |
So for the Homebrew upload, we need to make the repo public first, because things get built on-the-fly AFAICT, and we need the source code from a public URL for that. For Ubuntu, I've supported including a |
Now that the repo is public I'll try to make this available in Homebrew. Making it available in official Linux distributions is gonna be a much harder task, and likely not worth it when you can just |
Well this is annoying: someone already took the name "ipinfo" in the official Homebrew repo: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ipinfo.rb Not sure what else we could name it. I think we'll need to use a custom "Tap" and put our own formula there. https://github.com/Homebrew/brew/blob/master/docs/How-to-Create-and-Maintain-a-Tap.md |
@UmanShahzad we use ipinfoio on Twitter as an alternative to ipinfo if it helps :) |
@st-polina We can try that yeah, but the binary's name is actually At this point I'm just thinking it might be 10x better to just create a single script that the user downloads and it gets automatically run, and then it downloads the appropriate binary on its own regardless of platform (Windows would still be different though). |
@UmanShahzad i disagree that a script would be better. Homebrew isn’t just the standard for macOS installation. It keeps things up to date complete with dependencies. I run a script regularly to update all my homebrew packages and apps. I personally don’t care if the name is ideal. Having a homebrew install would be extremely nice. |
@mbierman that's a good point, thanks for the feedback. That mostly settles it then for me, I'd say: let's try to get this on Homebrew even if under a different name. |
Thanks, @UmanShahzad! |
Also please consider adding an option for installation via |
@yermulnik It should work already: https://github.com/ipinfo/cli#using-go-get |
If this works on Windows as well, I would recommend making available on Chocolatey and |
It definitely works, and will look into that, thanks! |
oops, apologies, somehow I missed that bit 🤦 thanks a lot for the pointer 🙇 |
@yermulnik Oh no you didn't miss it, I just added it because you mentioned it :) Thanks to you! |
My suggestion for the homebrew formula name: |
@UmanShahzad please post here when Homebrew is ready and I'll give it a try. @hellopablo I prefer ipinfo.io but I don't care that much. |
+1. I'd like it via Homebrew for both Mac and Linux and can test on both. |
Thanks guys, I'll ping you when we have something. I'll try working on getting it on Homebrew one way or another over the weekend. |
For anyone with homebrew, please try this and let me know if it works (it works for me on macos & linux): brew install ipinfo/tap/ipinfo-cli
# optionally:
brew install ipinfo/tap/grepip ref: https://github.com/ipinfo/cli#macos FYI this is not from the |
Works perfectly on macOS 11.3 👏 |
Seems good on macOS 10.15.7. |
Works great on Linux Mint 18.3 Sylvia x86_64 and macOS Catalina 10.15.7 19H1030 x86_64. Thanks a LOT! I'd also suggest to compliment these packages with bash (maybe also zsh/fish) completion. https://github.com/posener/complete seems to be the most popular Go package to add an option to go-based tool to bash-complete itself. UPD: it's already being tracked in #5 |
Not a smooth install for me...
After doing the xcode-select install it worked...
How can we have it "installed from bottle"? And ideally it should be possible to |
@coderholic Installing from a "bottle" means installing the binary directly without a build step, but that means doing a ton of CI for lots of different macos versions (and linux for linuxbrew users) to auto-build and auto-update the SHA-256 checksums of each binary for each platform, and upload them to github (this has some other complications - it's not a github "release" like we do in this repo). It's possible to do, will just take quite some more time. This can be simplified if we were on the official Homebrew tap because they already have all this CI set up, but it may take a while to get accepted by them. In the interest of getting this available to our users right now I've made our own tap. But if we really want installations to be possible via "bottles", then we'd best try to get this on the official tap. Homebrew has a "tap migration" feature so that once it's available on the official tap, all users on our current tap can automatically get migrated over there. Edit: what do you think is the best way forward? |
JFYI: have just successfully upgraded |
@yermulnik Good to know that upgrades are working as intended, thank you! |
Made Homebrew/homebrew-core#77280 to try and get this into the official tap now. |
Now available on the official homebrew tap: brew install ipinfo-cli Will get the remaining formulas up there as well e.g. for |
👍 Anything we should do to adhere to this change? Like re-installing? |
@yermulnik You'll automatically get migrated to the official version, nothing special to do! Just use You can remove the old tap if you don't want it: |
Got that! Thanks @UmanShahzad |
Yes sure, will notify when Homebrew/homebrew-core#77397 is the PR for grepip. |
Thank you @UmanShahzad ! |
If you are using grepip then this should work going forward: brew install grepip |
Thank you @UmanShahzad ! |
We can distribute the binary for each platform via Github initially so it can be installed with
curl
/wget
/etc, but it'd be even better if developers (the most likely users here) could grab it via their OS distributor's package repo. This could give us auto-completion automatically as well without a separate install step for that.We can start with making it available via Ubuntu's package repos first, and/or make our own PPA.
I don't use macOS so not sure of the distribution model there (I think most people use Homebrew?), but we can look into that afterwards.
The text was updated successfully, but these errors were encountered: