News for hackers. Stuff that matters.
Re:Tea: A new package manager from the creator of brew by codeslave13 on Sunday November 20, 2022 @10:53AM (#33681882)
But the title is accurate no?
Re:Tea: A new package manager from the creator of brew by woodruffw on Sunday November 20, 2022 @10:55AM (#33681912)
Yes. I meant that more as "Homebrew has undergone significant development changes since the creator of tea was last involved." In particular, the transition to the current architecture (favoring bottles over source builds on clients) happened well after him.
Re:Tea: A new package manager from the creator of brew by throwawaaarrgh on Sunday November 20, 2022 @11:08AM (#33682031)
Homebrew's kind of a dumpster fire now tho. The whole "you don't ever get to use an old version" thing was when I jumped ship. The fact that it can't handle two architectures in one install is also a big problem, though can be generally worked around
Re:Tea: A new package manager from the creator of brew by woodruffw on Sunday November 20, 2022 @11:12AM (#33682081)
Homebrew is almost entirely beholden to the behavior of an operating system (and entire hardware ecosystem) that we have no say over. It also was simply never meant to be a versioned package manager, because the majority of its users (developers) want rolling updates for their tooling.

You want different things than Homebrew was designed to do, which is perfectly fine. But we make those constraints abundantly clear in our documentation, and they produce a vastly better user experience for 99% of our users.

Re:Tea: A new package manager from the creator of brew by _HMCB_ on Sunday November 20, 2022 @11:36AM (#33682402)
I, for one, appreciate Homebrew. It’s the first thing I install on a fresh OS. Thanks for keeping it alive.
Re:Tea: A new package manager from the creator of brew by solarkraft on Sunday November 20, 2022 @01:24PM (#33683661)
Same! I've heard quite some complaining about it, but I for one am still blissfully unaware of its supposed shortcomings after about 2 years of use.
Re:Tea: A new package manager from the creator of brew by the_jeremy on Sunday November 20, 2022 @11:25AM (#33682270)
At my company, Homebrew is the de facto package manager for Mac. My team doesn't prefer constant rolling updates, but we do work around them. Have you polled users in any way to be sure that 99% of them consider this a feature, and not an issue they have to deal with?
Re:Tea: A new package manager from the creator of brew by richbell on Sunday November 20, 2022 @11:29AM (#33682325)
Rolling updates are the #1 source of "I don't understand why this isn't working anymore, it worked just fine yesterday!" and annoyances when you need a specific package version (n-2) to align with your deployment environment and Homebrew keeps updating to the bleeding edge.

(Beggars can't be choosers, etc. — I recognize the utility that Homebrew has provided to millions of people, that doesn't mean I can't mention its problems.)

Re:Tea: A new package manager from the creator of brew by woodruffw on Sunday November 20, 2022 @11:48AM (#33682565)
It's based on our historical experience maintaining versions (or, at minimum, trying to not change the core DSL such that older formulae continue to work): we get an order of magnitude more requests for updates than requests for older versions, and even fewer specific complaints about breakage.

When a particular package (or version) is widely adopted and difficult to migrate away from (like versions of LLVM, Postgres, or Python), we provide `@`-discriminated versions to allow people to migrate at their own pace. If there's a particular formula you want versioned that we don't currently, please open an issue so that we can discuss it!

Re:Tea: A new package manager from the creator of brew by Nicksil on Sunday November 20, 2022 @11:33AM (#33682364)
>the majority of its users (developers) want rolling updates for their tooling.

I haven't met a single software developer who wants this. That's not to say your statement is incorrect -- I have no evidence stating otherwise -- but the idea boggles my mind.

Re:Tea: A new package manager from the creator of brew by mattarm on Sunday November 20, 2022 @11:42AM (#33682493)
Please allow me to introduce myself...

Pleased to meet you Hope you guess my name But what's puzzling you Is the nature of my game

Re:Tea: A new package manager from the creator of brew by cle on Sunday November 20, 2022 @11:55AM (#33682656)
A huge amount of Linux users use rolling release distributions now (Arch, Manjaro, EndeavourOS, etc). I prefer it as well because I find it less disruptive than occasional big-bang versioned releases.

Where versioning matters, we have better tools than OS package managers now (ex Docker).

Re:Tea: A new package manager from the creator of brew by akerl_ on Sunday November 20, 2022 @11:56AM (#33682668)
I want rolling updates for my tooling.
Re:Tea: A new package manager from the creator of brew by 95014_refugee on Sunday November 20, 2022 @12:41PM (#33683182)
> I haven't met a single software developer who wants this.

You should get out more. No offense.

Incremental pain, delivered early, is both corrective and less expensive over the long run. If you need to remain version-locked for a specific reason, that reason is likely to be locally scoped rather than global, in which case TFA describes an attempt to address your problem.

Re:Tea: A new package manager from the creator of brew by Nicksil on Sunday November 20, 2022 @12:58PM (#33683353)
>You should get out more. No offense.

This is an unnecessary comment.

>Incremental pain, delivered early, is both corrective and less expensive over the long run. If you need to remain version-locked for a specific reason, that reason is likely to be locally scoped rather than global, in which case TFA describes an attempt to address your problem.

This rests on the assumption of a relatively homogenized software development industry without any consideration for, at least, critical systems building. There's a broad range of disciplines in this industry which do not -- and cannot -- adhere to the practices you mention.

Re:Tea: A new package manager from the creator of brew by spmurrayzzz on Sunday November 20, 2022 @12:41PM (#33683185)
I am also in the camp of engineers who prefer stability over bleeding edge. But I do understand folks who prefer the latter modality. If dependencies are gonna break, often its more desirable to have them break quickly with a short remedial cadence to follow. In my own anecdotal experience though, "short" is probably too charitable of a descriptor for the time to fix.
Re:Tea: A new package manager from the creator of brew by rleigh on Sunday November 20, 2022 @12:47PM (#33683226)
I'd much prefer a compromise, like the FreeBSD quarterly updates vs daily, so you can pick the update frequency.

I can't tell you the total number of wasted hours my previous organisation spent upon maintaining MacOS infrastructure after random breakage due to homebrew, but it was a regular occurrence and likely a few hundreds of hours per year for the small setup we looked after, mainly for CI.

Re:Tea: A new package manager from the creator of brew by jemmyw on Sunday November 20, 2022 @03:13PM (#33684784)
For tools that I develop on I use asdf for versioning. For everything else I want the latest stable version, so homebrew works well.

On Linux I use a rolling release distro for the same effect.

Re:Tea: A new package manager from the creator of brew by bilalq on Sunday November 20, 2022 @11:48AM (#33682569)
Let me start by saying Homebrew is incredibly valuable and useful.

That said, the insistence on everything updating all the time is very frustrating. Being stuck waiting 30 seconds when trying to install something because brew is updating despite no one asking it to, random things breaking after an update, and needing to find escape hatches so an older version of some package can be installed are all pretty painful.

Perhaps I too am in the minority here.

Re:Tea: A new package manager from the creator of brew by woodruffw on Sunday November 20, 2022 @11:51AM (#33682607)
I think I've answered the part about why we do bleeding edge updates below, but for the auto-updating and upgrading behavior: you can set `HOMEBREW_NO_AUTO_UPDATE=1` and `HOMEBREW_NO_INSTALL_UPGRADE=1` in your shell environment. The former will prevent silent updates of the taps, and the latter will prevent unrequested upgrades of outdated formulae (per tap state).
Re:Tea: A new package manager from the creator of brew by giantrobot on Sunday November 20, 2022 @01:32PM (#33683736)
Making those behaviors the default would better serve the Principal of Least Surprise.
Re:Tea: A new package manager from the creator of brew by woodruffw on Sunday November 20, 2022 @05:29PM (#33686160)
Homebrew is just git under the hood, so upgrading an arbitrarily old core and tap state to the latest release may not result in a correct migration. That’s arguably more surprising, since a user then has to contend with broken package state instead of the occasional inconvenience of an auto-upgrade.
Re:Tea: A new package manager from the creator of brew by giantrobot on Monday November 21, 2022 @01:11PM (#33695798)
My issue is installing a package. Brew has a local state of the universe. It could just install the new package I ask for. Instead it installs the package plus updates for other packages I have installed. More than once I've had those unrequested updates break. Then I'm stuck yak shaving trying to fix some random package because I dared to install a new one.

I really appreciate the work all the Homebrew developers do. But I've lost a lot of time chasing down problems caused just because I installed some stupid utility.

Re:Tea: A new package manager from the creator of brew by ChrisMarshallNY on Sunday November 20, 2022 @12:05PM (#33682775)
I've used Homebrew for years.

WFM. YMMV.

Thanks so much!

Re:Tea: A new package manager from the creator of brew by tomjakubowski on Sunday November 20, 2022 @11:18AM (#33682157)
Homebrew distrbutes recipes and bottles for older versions of many packages: postgres and node come to mind. And it's easy to maintain your own recipe if you need a different one.

https://stackoverflow.com/questions/3987683/homebrew-install...

Re:Tea: A new package manager from the creator of brew by it-is-you on Sunday November 20, 2022 @11:30AM (#33682338)
You can approximate pinning of a brew version by forking it and resetting git's head to the desired version, then referencing your fork.

Maybe an appropriate amount of work if your context is sensitive to rolling updates.

Re:Tea: A new package manager from the creator of brew by nerdponx on Sunday November 20, 2022 @01:50PM (#33683921)
It's a rolling-release package manager, that's what you get. It's the same with Macports and Pkgsrc.