Skip to content

Commit

Permalink
Fix Go-based subctl install docs
Browse files Browse the repository at this point in the history
Because we have `replace` statemetns in `submariner-operator/go.mod` to
pin the K8s version, when run from outside of the submariner-operator
repo `go install` declines to build `subctl` with:

The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.

This issue is described upstream here:

golang/go#44840 (comment)

Signed-off-by: Daniel Farrell <[email protected]>
  • Loading branch information
dfarrell07 committed Dec 7, 2021
1 parent d517180 commit 61f88bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/layouts/shortcodes/subctl-install.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
echo export PATH=\$PATH:~/.local/bin >> ~/.profile
```

If you have Go installed, you can use that instead:
If you have Go and the [source code](https://github.com/submariner-io/submariner-operator), you can build and install subctl instead:

```bash
cd go/src/submariner-io/submariner-operator
go install github.com/submariner-io/submariner-operator/pkg/subctl
```

Expand Down

0 comments on commit 61f88bd

Please sign in to comment.