Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Remove gno build command
Browse files Browse the repository at this point in the history
`gno build` has been removed from gno binary in PR[1]. Removed usage
of same in the language server.

Using `gno precompile -gobuild` instead.

See:
[1]: gnolang/gno@0c68394)
[2]: gnolang/gno#1242
  • Loading branch information
harry-hov committed Jan 5, 2024
1 parent 60833f9 commit 00aff27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/tools/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import (
"path/filepath"
)

// Build a Gno package: gno build <dir>.
// Build a Gno package: gno precompile -gobuild <dir>.
// TODO: Remove this in the favour of directly using tools/precompile.go
func Build(rootDir string) ([]byte, error) {
return exec.Command("gno", "build", filepath.Join(rootDir)).CombinedOutput()
return exec.Command("gno", "precompile", "-gobuild", filepath.Join(rootDir)).CombinedOutput()
}

0 comments on commit 00aff27

Please sign in to comment.