Skip to content

Commit 30e260b

Browse files
committed
fix(docopts): initialize Go modules before running go build
- on the root fork on `master`, there is no `go.mod` yet, so need to create one and add deps - I have a PR out that adds this (and more), but it is still under review (and maybe for a good bit): docopt/docopts#65
1 parent 2e33aee commit 30e260b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Formula/docopts.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ class Docopts < Formula
99
depends_on "go" => :build
1010

1111
def install
12+
# go mod init + go get b/c 0.6.4 doesn't use Go modules yet (see also my PR: https://github.com/docopt/docopts/pull/65)
13+
system "go", "mod", "init", "github.com/docopt/docopts"
14+
system "go", "get", "github.com/docopt/docopt-go"
1215
system "go", "build", "docopts.go"
1316
prefix.install_metafiles
1417
prefix.install "docopts.sh" # helper functions, meant to be sourced

0 commit comments

Comments
 (0)