Skip to content

Build failure when using make install #3368

Closed
@stefann-01

Description

@stefann-01

Build failure: BeginTransaction missing GasMeter argument

Description

After pulling the latest commit from master, when using make install command, the installation fails during gno installation due to a type mismatch in the BeginTransaction function call. The compiler indicates that a required GasMeter argument is missing in the function call in the linting code.

Your environment

  • Go version go1.23.2
  • OS and CPU architecture linux/amd64
  • Gno commit hash causing the issue d69b552

Steps to reproduce

  1. Clone the Gno repository
  2. Checkout commit d69b552
  3. Run make install from the root directory
  4. Build fails during the gno installation step

Expected behaviour

The make install command should complete successfully.

Actual behaviour

The build fails.

Logs

go install ./cmd/gnokey
[+] 'gnokey' has been installed. Read more in ./gno.land/
make --no-print-directory -C ./gnovm    install
go install -ldflags "-X github.com/gnolang/gno/gnovm/pkg/gnoenv._GNOROOT=/home/stefan/gno_workspace/gno_orig/gno" ./cmd/gno
# github.com/gnolang/gno/gnovm/cmd/gno
cmd/gno/lint.go:147:34: not enough arguments in call to ts.BeginTransaction
        have ("github.com/gnolang/gno/tm2/pkg/store/types".Store, "github.com/gnolang/gno/tm2/pkg/store/types".Store)
        want ("github.com/gnolang/gno/tm2/pkg/store/types".Store, "github.com/gnolang/gno/tm2/pkg/store/types".Store, "github.com/gnolang/gno/tm2/pkg/store/types".GasMeter)
make[1]: *** [Makefile:43: install] Error 1
make: *** [Makefile:42: install.gno] Error 2```

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions