Skip to content

trying to add a software to homebrew for installing it via homebrew #4717

Discussion options

You must be logged in to vote

It's because your main package is not in the root of the repo but rather in the cli directory. So instead of:

system "go", "build", *std_go_args(ldflags: "-s -w")

use:

system "go", "build", *std_go_args(ldflags: "-s -w"), "./cli"

to point to the cli directory.

Note that your repo seems to be missing a go.sum file so this may still fail. The recommended practice is that you commit the go.sum file and we require it to be present for software in the Homebrew core repo that pulls dependencies through Go modules.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@DiyorbekAzimqulov
Comment options

@alebcay
Comment options

Answer selected by DiyorbekAzimqulov
@DiyorbekAzimqulov
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants