Make helper command get installed as part of main package?

Question in short: Can I have a command that is part of a go programming library to be installed as part of go-getting the main package?

Background: I have a library (scipipe) which is supposed to be consumed as a programming library. Then I have a command “scipipe”, with some helper functionality to work with scipipe code, which I would like to get installed into $GOPATH/bin/ when go-getting the main package, that is, doing go get github.com/scipipe/scipipe. It is currently located under cmd/scipipe/ in the main repo but that could be changed if needed.

Is this possible, with or without workarounds?

go get github.com/scipipe/scipipe/

2 Likes

@elithrar Ah, forgot about the three dots, Thanks! :slight_smile:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.