always document go generate before go build

This commit is contained in:
AJ ONeal 2020-11-13 14:18:53 -07:00
parent 0237d20ff1
commit 88644088e2
4 changed files with 7 additions and 4 deletions

View File

@ -87,6 +87,7 @@ pushd telebit/
You can build with `go build`:
```bash
go generate -mod=vendor ./...
go build -mod vendor -race -o telebit cmd/telebit/*.go
```
@ -123,7 +124,7 @@ curl.exe -fsSA "MS" https://webinstall.dev/golang | powershell
All dependencies are included, at the correct version in the `./vendor` directory.
```bash
go generate ./...
go generate -mod vendor ./...
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod vendor -o telebit-linux ./cmd/telebit/*.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -mod vendor -o telebit-macos ./cmd/telebit/*.go

View File

@ -187,6 +187,7 @@ curl -L -X DELETE http://mgmt.example.com:6468/api/devices/${my_subdomain} -H "A
You can build with `go build`:
```bash
go generate -mod vendor ./...
go build -mod vendor -race -o telebit-mgmt cmd/mgmt/*.go
```
@ -199,7 +200,7 @@ goreleaser --rm-dist --skip-publish --snapshot
Or cross-compile:
```bash
go generate ./...
go generate -mod vendor ./...
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod vendor -o telebit-mgmt-linux ./cmd/mgmt/*.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -mod vendor -o telebit-mgmt-macos ./cmd/mgmt/*.go

View File

@ -100,6 +100,7 @@ bash examples/admin-disconnect-device.sh
You can build with `go build`:
```bash
go generate -mod vendor ./...
go build -mod vendor -race -o telebit-relay cmd/telebit/*.go
```
@ -112,7 +113,7 @@ goreleaser --rm-dist --skip-publish --snapshot
Or cross-compile:
```bash
go generate ./...
go generate -mod vendor ./...
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -mod vendor -o telebit-relay-linux ./cmd/telebit/*.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -mod vendor -o telebit-relay-macos ./cmd/telebit/*.go

View File

@ -23,7 +23,7 @@ All of the devices need to be under the same domain. You are limited by Let's En
## White Label Builds
```bash
go generate ./...
go generate -mod vendor ./...
VENDOR_ID="example.com"