mirror of
https://github.com/jimeh/homebrew-emacs-builds.git
synced 2026-02-19 06:26:38 +00:00
fix(nightly): ensure only relevant git tags are considered
Previously non-matching tags were not filtered out from the list of valid versions. It wasn't an issue though cause all current releases do match the pattern we were looking for. But that will not be the case for much longer when stable releases are added into the mix.
This commit is contained in:
@@ -14,7 +14,10 @@ cask 'emacs-app-nightly' do
|
||||
url 'https://github.com/jimeh/emacs-builds.git'
|
||||
strategy :git do |tags|
|
||||
tags.map do |tag|
|
||||
tag.gsub(/^Emacs\.(\d{4}-\d{2}-\d{2}\.\w+\.master)$/i, '\\1')
|
||||
m = /^Emacs\.(\d{4}-\d{2}-\d{2}\.\w+\.master)$/.match(tag)
|
||||
next unless m
|
||||
|
||||
m[1]
|
||||
end.compact
|
||||
end
|
||||
end
|
||||
@@ -22,6 +25,7 @@ cask 'emacs-app-nightly' do
|
||||
conflicts_with(
|
||||
cask: %w[
|
||||
emacs-app
|
||||
emacs-app-good
|
||||
emacs
|
||||
emacs-nightly
|
||||
emacs-pretest
|
||||
|
||||
@@ -14,7 +14,10 @@ cask 'emacs-app-nightly' do
|
||||
url 'https://github.com/jimeh/emacs-builds.git'
|
||||
strategy :git do |tags|
|
||||
tags.map do |tag|
|
||||
tag.gsub(/^Emacs\.(\d{4}-\d{2}-\d{2}\.\w+\.master)$/i, '\\1')
|
||||
m = /^Emacs\.(\d{4}-\d{2}-\d{2}\.\w+\.master)$/.match(tag)
|
||||
next unless m
|
||||
|
||||
m[1]
|
||||
end.compact
|
||||
end
|
||||
end
|
||||
@@ -22,6 +25,7 @@ cask 'emacs-app-nightly' do
|
||||
conflicts_with(
|
||||
cask: %w[
|
||||
emacs-app
|
||||
emacs-app-good
|
||||
emacs
|
||||
emacs-nightly
|
||||
emacs-pretest
|
||||
|
||||
Reference in New Issue
Block a user