From a7881cab445010366a7bbb3e52eb47d787bca01f Mon Sep 17 00:00:00 2001 From: Hariom Verma Date: Wed, 24 Apr 2024 14:42:09 +0530 Subject: [PATCH] fix(docs): replace `gno build` with `gno transpile --gobuild` (#1903) `gno build` was removed in https://github.com/gnolang/gno/pull/1297 in favor of `gno transpile -gobuild`. --- docs/reference/go-gno-compatibility.md | 56 +++++++++++++------------- gnovm/cmd/gno/README.md | 1 - gnovm/tests/challenges/unused0.gno | 4 +- 3 files changed, 30 insertions(+), 31 deletions(-) diff --git a/docs/reference/go-gno-compatibility.md b/docs/reference/go-gno-compatibility.md index 87f4f1105c8..89ad4f7b990 100644 --- a/docs/reference/go-gno-compatibility.md +++ b/docs/reference/go-gno-compatibility.md @@ -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 | diff --git a/gnovm/cmd/gno/README.md b/gnovm/cmd/gno/README.md index d49ca85736e..f900b164783 100644 --- a/gnovm/cmd/gno/README.md +++ b/gnovm/cmd/gno/README.md @@ -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 diff --git a/gnovm/tests/challenges/unused0.gno b/gnovm/tests/challenges/unused0.gno index 4be91cc6de6..d5b0ff75c17 100644 --- a/gnovm/tests/challenges/unused0.gno +++ b/gnovm/tests/challenges/unused0.gno @@ -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 }