mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-04 03:11:55 +02:00
parent
e39548dde7
commit
ee14837127
@ -313,6 +313,8 @@ func TestFullPipe(t *testing.T) {
|
||||
{Name: "zsh", Type: "optional"},
|
||||
{Name: "bash", Version: "3.2.57"},
|
||||
{Name: "fish", Type: "optional", Version: "v1.2.3"},
|
||||
{Name: "powershell", Type: "optional", OS: "mac"},
|
||||
{Name: "ash", Version: "1.0.0", OS: "linux"},
|
||||
},
|
||||
Conflicts: []string{"gtk+", "qt"},
|
||||
Service: "run foo/bar\nkeep_alive true",
|
||||
|
@ -49,6 +49,7 @@ class {{ .Name }} < Formula
|
||||
{{ range $index, $element := . }}
|
||||
depends_on "{{ .Name }}"
|
||||
{{- if .Type }} => :{{ .Type }}{{- else if .Version }} => "{{ .Version }}"{{- end }}
|
||||
{{- with .OS }} if OS.{{ . }}?{{- end }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
|
||||
|
@ -7,8 +7,10 @@ class CustomBlock < Formula
|
||||
homepage "https://github.com/goreleaser"
|
||||
version "1.0.1"
|
||||
|
||||
depends_on "ash" => "1.0.0" if OS.linux?
|
||||
depends_on "bash" => "3.2.57"
|
||||
depends_on "fish" => :optional
|
||||
depends_on "powershell" => :optional if OS.mac?
|
||||
depends_on "zsh" => :optional
|
||||
|
||||
on_macos do
|
||||
|
@ -7,8 +7,10 @@ class CustomDownloadStrategy < Formula
|
||||
homepage "https://github.com/goreleaser"
|
||||
version "1.0.1"
|
||||
|
||||
depends_on "ash" => "1.0.0" if OS.linux?
|
||||
depends_on "bash" => "3.2.57"
|
||||
depends_on "fish" => :optional
|
||||
depends_on "powershell" => :optional if OS.mac?
|
||||
depends_on "zsh" => :optional
|
||||
|
||||
on_macos do
|
||||
|
@ -8,8 +8,10 @@ class CustomRequire < Formula
|
||||
homepage "https://github.com/goreleaser"
|
||||
version "1.0.1"
|
||||
|
||||
depends_on "ash" => "1.0.0" if OS.linux?
|
||||
depends_on "bash" => "3.2.57"
|
||||
depends_on "fish" => :optional
|
||||
depends_on "powershell" => :optional if OS.mac?
|
||||
depends_on "zsh" => :optional
|
||||
|
||||
on_macos do
|
||||
|
@ -7,8 +7,10 @@ class Default < Formula
|
||||
homepage "https://github.com/goreleaser"
|
||||
version "1.0.1"
|
||||
|
||||
depends_on "ash" => "1.0.0" if OS.linux?
|
||||
depends_on "bash" => "3.2.57"
|
||||
depends_on "fish" => :optional
|
||||
depends_on "powershell" => :optional if OS.mac?
|
||||
depends_on "zsh" => :optional
|
||||
|
||||
on_macos do
|
||||
|
@ -7,8 +7,10 @@ class DefaultGitlab < Formula
|
||||
homepage "https://gitlab.com/goreleaser"
|
||||
version "1.0.1"
|
||||
|
||||
depends_on "ash" => "1.0.0" if OS.linux?
|
||||
depends_on "bash" => "3.2.57"
|
||||
depends_on "fish" => :optional
|
||||
depends_on "powershell" => :optional if OS.mac?
|
||||
depends_on "zsh" => :optional
|
||||
|
||||
on_macos do
|
||||
|
@ -7,8 +7,10 @@ class GitRemote < Formula
|
||||
homepage "https://github.com/goreleaser"
|
||||
version "1.0.1"
|
||||
|
||||
depends_on "ash" => "1.0.0" if OS.linux?
|
||||
depends_on "bash" => "3.2.57"
|
||||
depends_on "fish" => :optional
|
||||
depends_on "powershell" => :optional if OS.mac?
|
||||
depends_on "zsh" => :optional
|
||||
|
||||
on_macos do
|
||||
|
@ -7,8 +7,10 @@ class OpenPr < Formula
|
||||
homepage "https://github.com/goreleaser"
|
||||
version "1.0.1"
|
||||
|
||||
depends_on "ash" => "1.0.0" if OS.linux?
|
||||
depends_on "bash" => "3.2.57"
|
||||
depends_on "fish" => :optional
|
||||
depends_on "powershell" => :optional if OS.mac?
|
||||
depends_on "zsh" => :optional
|
||||
|
||||
on_macos do
|
||||
|
@ -7,8 +7,10 @@ class ValidRepositoryTemplates < Formula
|
||||
homepage ""
|
||||
version "1.0.1"
|
||||
|
||||
depends_on "ash" => "1.0.0" if OS.linux?
|
||||
depends_on "bash" => "3.2.57"
|
||||
depends_on "fish" => :optional
|
||||
depends_on "powershell" => :optional if OS.mac?
|
||||
depends_on "zsh" => :optional
|
||||
|
||||
on_macos do
|
||||
|
@ -156,6 +156,7 @@ type HomebrewDependency struct {
|
||||
Name string `yaml:"name,omitempty" json:"name,omitempty"`
|
||||
Type string `yaml:"type,omitempty" json:"type,omitempty"`
|
||||
Version string `yaml:"version,omitempty" json:"version,omitempty"`
|
||||
OS string `yaml:"os,omitempty" json:"os,omitempty" jsonschema:"enum=mac,enum=linux"`
|
||||
}
|
||||
|
||||
// type alias to prevent stack overflowing in the custom unmarshaler.
|
||||
|
@ -115,6 +115,11 @@ brews:
|
||||
# Packages your package depends on.
|
||||
dependencies:
|
||||
- name: git
|
||||
# Allow to specify the OS in which the dependency is required.
|
||||
# Valid options are `mac` and `linux`.
|
||||
#
|
||||
# Since: v1.23.0
|
||||
os: mac
|
||||
- name: zsh
|
||||
type: optional
|
||||
- name: fish
|
||||
|
7
www/docs/static/schema.json
generated
vendored
7
www/docs/static/schema.json
generated
vendored
@ -1268,6 +1268,13 @@
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
},
|
||||
"os": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"mac",
|
||||
"linux"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
Loading…
Reference in New Issue
Block a user