mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
create: strip 'v' prefix from version
To fix subsequent `brew audit` error: * line 8, col 3: Version v0.38.1 should not have a leading 'v'
This commit is contained in:
parent
dd04fb5ab6
commit
eca98d036c
@ -165,7 +165,7 @@ module Homebrew
|
|||||||
<% unless @head %>
|
<% unless @head %>
|
||||||
url "#{@url}"
|
url "#{@url}"
|
||||||
<% unless @version.detected_from_url? %>
|
<% unless @version.detected_from_url? %>
|
||||||
version "#{@version}"
|
version "#{@version.to_s.delete_prefix('v')}"
|
||||||
<% end %>
|
<% end %>
|
||||||
sha256 "#{@sha256}"
|
sha256 "#{@sha256}"
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user