Skip to content

Commit

Permalink
fix(docs): replace gno build with gno transpile --gobuild (gnolan…
Browse files Browse the repository at this point in the history
…g#1903)

`gno build` was removed in gnolang#1297 in
favor of `gno transpile -gobuild`.
  • Loading branch information
harry-hov committed Apr 24, 2024
1 parent d7fdfe5 commit a7881ca
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 31 deletions.
56 changes: 28 additions & 28 deletions docs/reference/go-gno-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,31 +294,31 @@ Legend:

## Tooling (`gno` binary)

| go command | gno command | comment |
|-------------------|------------------|-----------------------------------------------------------------------|
| go bug | gno bug | same behavior |
| go build | gno build | same intention, limited compatibility |
| go clean | gno clean | same intention, limited compatibility |
| go doc | gno doc | limited compatibility; see https://github.com/gnolang/gno/issues/522 |
| go env | | |
| go fix | | |
| go fmt | | gofmt (& similar tools, like gofumpt) works on gno code. |
| go generate | | |
| go get | | see `gno mod download`. |
| go help | gno $cmd --help | ie. `gno doc --help` |
| go install | | |
| go list | | |
| go mod | gno mod | |
| + go mod init | gno mod init | same behavior |
| + go mod download | gno mod download | same behavior |
| + go mod tidy | gno mod tidy | same behavior |
| + go mod why | gno mod why | same intention |
| | gno transpile | |
| go work | | |
| | gno repl | |
| go run | gno run | |
| go test | gno test | limited compatibility |
| go tool | | |
| go version | | |
| go vet | | |
| golint | gno lint | same intention |
| go command | gno command | comment |
|-------------------|---------------------------|-----------------------------------------------------------------------|
| go bug | gno bug | same behavior |
| go build | gno transpile -gobuild | same intention, limited compatibility |
| go clean | gno clean | same intention, limited compatibility |
| go doc | gno doc | limited compatibility; see https://github.com/gnolang/gno/issues/522 |
| go env | | |
| go fix | | |
| go fmt | | gofmt (& similar tools, like gofumpt) works on gno code. |
| go generate | | |
| go get | | see `gno mod download`. |
| go help | gno $cmd --help | ie. `gno doc --help` |
| go install | | |
| go list | | |
| go mod | gno mod | |
| + go mod init | gno mod init | same behavior |
| + go mod download | gno mod download | same behavior |
| + go mod tidy | gno mod tidy | same behavior |
| + go mod why | gno mod why | same intention |
| | gno transpile | |
| go work | | |
| | gno repl | |
| go run | gno run | |
| go test | gno test | limited compatibility |
| go tool | | |
| go version | | |
| go vet | | |
| golint | gno lint | same intention |
1 change: 0 additions & 1 deletion gnovm/cmd/gno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
## Commands

* `gno run` - run a Gno file
* `gno build` - build a gno package
* `gno transpile` - transpile .gno to .go
* `gno test` - test a gno package
* `gno mod` - manages dependencies
Expand Down
4 changes: 2 additions & 2 deletions gnovm/tests/challenges/unused0.gno
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

// NOTE: instead of patching the vm code, this should be handled by an
// integration of `gno build`, which uses `go build` under the hood and already
// detects unused variables.
// integration of `gno transpile --gobuild`, which uses `go build` under
// the hood and already detects unused variables.
func main() {
var x int
}
Expand Down

0 comments on commit a7881ca

Please sign in to comment.