Use head block instead of the deprecated devel
adamfeldman opened this issue · comments
tl;dr: I am making a PR to fix an issue that was caused by a change by Homebrew.
I ran brew upgrade -n
and got this warning message (it printed out twice):
Warning: Calling 'devel' blocks in formulae is deprecated! Use 'head' blocks or @-versioned formulae instead.
Please report this issue to the clojure/tools tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/clojure/homebrew-tools/Formula/clojure.rb:7
Homebrew seems to be deprecating devel
blocks.
AFAICT, head
blocks are the recommended replacement.
The Homebrew docs* describe head
and devel
blocks:
head URLs (activated by passing --HEAD) build the development cutting edge.
...
The devel spec (activated by passing --devel) is used for a project’s unstable releases. devel specs are not allowed in Homebrew/homebrew-core.
clojure/homebrew-tools
currently uses the following command to install a dev release:
brew install --devel clojure/tools/clojure
As a result of Homebrew's changes, this is replaced with:
brew install --head clojure/tools/clojure
*A casual read of the docs makes it appear that head
uses a different syntax than devel
. A quick review of the Homebrew rubydocs, and other formulas on Github, implies a simple renaming is all that's needed.
Hi. I am having this same issue but I don't find/know if there is any solution yet.
Any feedback or guide would be nice :) thank you.
Hi all,
The commit 4c2ee07 into the master branch from @puredanger fixes this Homebrew warning issue by removing thedevel
block.
So this issue can now be closed.