zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.59k stars 2.64k forks source link

Add Linux Homebrew Formula #14108

Open imbev opened 1 month ago

imbev commented 1 month ago

Check for existing issues

Describe the feature

Installing Zed via Homebrew is only possible on MacOS. I suggest that a Zed Homebrew Formula be added with support for Linux.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

notpeter commented 1 month ago

Consider disabling auto updates by building with via ZED_UPDATE_EXPLANATION while we're at it.

notpeter commented 1 month ago

Hi @imbev,

I created a POC formula for Linux brew, but my understanding is that in the presence of a cask and a formula homebrew on MacOS running brew install zed brew will prefer the formula over the cask with our official binaries. This would mean MacOS users would end up building from source or switch to new homebrew built binary bottles. :-/

Since I don't want to introduce friction or a new channel of binary builds for MacOS users, I'm going to hold off on adding a formula. Conceivably we could maintain a tap with the formula to allow linuxbrew and macos brew users to build from source, but we would also need to build-out release automation so those tap formulas would auto-update for our stable releases.

So the short answer is, maybe someday, but not today. Very much appreciate you bringing this up as a potential distribution channel.

For anyone who finds this, please vote 👍 on the issue to express your interest. Thanks

mabequinho commented 1 month ago

The documentation at https://zed.dev/docs/linux#installing-via-a-package-manager lists Homebrew as an installation option for Linux, which is not accurate.

notpeter commented 1 month ago

The documentation at https://zed.dev/docs/linux#installing-via-a-package-manager lists Homebrew as an installation option for Linux, which is not accurate.

Thanks @mabequinho. Fixed.