1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: Adds comments to formula template to conform to 'brew audit --strict --online' (#2001)

* fix: Adds comments to formula template to conform to 'brew audit'

* Adding expected output to formula testdata files
This commit is contained in:
Justin Hammond 2021-01-07 05:14:50 -07:00 committed by GitHub
parent a52b1482b4
commit 49c17befcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 40 additions and 1 deletions

View File

@ -29,7 +29,10 @@ type downloadable struct {
SHA256 string
}
const formulaTemplate = `# This file was generated by GoReleaser. DO NOT EDIT.
const formulaTemplate = `# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
{{ if .CustomRequire -}}
require_relative "{{ .CustomRequire }}"
{{ end -}}

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class BinaryOverridden < Formula
desc "A run pipe test formula"

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class CustomBlock < Formula
desc "A run pipe test formula and FOO=foo_is_bar"

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class CustomDownloadStrategy < Formula
desc "A run pipe test formula and FOO=foo_is_bar"

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
require_relative "custom_download_strategy"
class CustomRequire < Formula

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Default < Formula
desc "A run pipe test formula and FOO=foo_is_bar"

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class DefaultGitlab < Formula
desc "A run pipe test formula and FOO=foo_is_bar"

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class FooIsBar < Formula
desc ""

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class MultipleArmv5 < Formula
desc "A run pipe test formula and FOO=foo_is_bar"

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class MultipleArmv6 < Formula
desc "A run pipe test formula and FOO=foo_is_bar"

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class MultipleArmv7 < Formula
desc "A run pipe test formula and FOO=foo_is_bar"

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Test < Formula
desc "Some desc"

View File

@ -1,3 +1,6 @@
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Test < Formula
desc "Some desc"