Hi,
I wanted to create a brew formula for Yarn.
However, I couldn't find a way to access versioned artifacts (i.e. yarn-0.15.0.tar.gz), only latest.tar.gz. This prevents specifying expected versions and checksums, effectively preventing any kind of package management (haha) for the executable.
Could you please provide us with versioned artifacts, so it is possible to install any published version without relying on a compromisable shell script? :)
Cheers,
Matti
However, I couldn't find a way to access versioned artifacts
You can use https://yarnpkg.com/downloads/0.15.0/yarn-v0.15.0.tar.gz. This is exactly how the Windows Chocolatey package works for example: https://github.com/yarnpkg/yarn/blob/master/resources/win-chocolatey/tools/chocolateyinstall.ps1.in#L11
Also, @kittens started working on a Homebrew package in #418 but had to abandon it due to time constraints. I don't know a lot about Homebrew, but maybe you could reuse some work that was done in there?
Thanks for the pointer!
https://github.com/yarnpkg/homebrew-yarn as a tap, which means you would have maintained your own formul忙 there.That could make sense. Please let me know if you prefer to maintain your own tap rather than being merged into the main homebrew repo.
Yeah, #418 was closed since we couldn't get it finished before the public release, but I _think_ the idea was to have our own formula so we can update it immediately when a new version of Yarn is available rather than having to merge it into the Homebrew repo. This is how HHVM does it: https://github.com/hhvm/homebrew-hhvm.
Most of the other people on the Yarn project are on Mac OS (I tend to be the only Windows user on various Facebook-related projects 馃槢 ) so it's probably worth waiting for their input too, as they'd be more familiar with Homebrew.
There is now a formulae for Yarn on homebrew https://github.com/Homebrew/homebrew-core/blob/master/Formula/yarn.rb
Most helpful comment
There is now a formulae for Yarn on homebrew https://github.com/Homebrew/homebrew-core/blob/master/Formula/yarn.rb