Skip to content

Commit d53d483

Browse files
authored
Add Wget dependency (#248)
* add wget dependency * bump terraform version * change wget min version * add wget to goreleaser config
1 parent b38e72a commit d53d483

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,7 @@ brews:
4545
type: optional
4646
- name: kubectl
4747
type: optional
48+
- name: wget
49+
type: optional
4850
test: |
4951
system "#{bin}/zero version"

cmd/check.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ var checkCmd = &cobra.Command{
124124
command: "terraform",
125125
args: []string{"version"},
126126
regexStr: `Terraform v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)`,
127-
minVersion: "0.12.0",
127+
minVersion: "0.13.0",
128128
docsURL: "https://www.terraform.io/downloads.html",
129129
},
130130
{
@@ -143,6 +143,14 @@ var checkCmd = &cobra.Command{
143143
minVersion: "2.17.1",
144144
docsURL: "https://git-scm.com/book/en/v2/Getting-Started-Installing-Git",
145145
},
146+
{
147+
name: "Wget\t\t",
148+
command: "wget",
149+
args: []string{"--version"},
150+
regexStr: `^GNU Wget (0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)`,
151+
minVersion: "1.14.0",
152+
docsURL: "https://www.gnu.org/software/wget/",
153+
},
146154
}
147155

148156
// Store and errors from the commands we run.

0 commit comments

Comments
 (0)