From eca98d036cd41612c676e117c6fbeb8775494988 Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Sun, 22 Jun 2025 17:41:00 +0300 Subject: [PATCH] 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' --- Library/Homebrew/formula_creator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index 15d295597b..2b1742fdf7 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -165,7 +165,7 @@ module Homebrew <% unless @head %> url "#{@url}" <% unless @version.detected_from_url? %> - version "#{@version}" + version "#{@version.to_s.delete_prefix('v')}" <% end %> sha256 "#{@sha256}" <% end %>