Skip to content

Commit d8f8e00

Browse files
author
Darren Kelly
committed
fix(goreleaser): remove go generate command and set go generate version
1 parent 9409317 commit d8f8e00

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.goreleaser.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ version: 2
1010

1111
before:
1212
hooks:
13-
# You may remove this if you don't use go modules.
1413
- go mod tidy
15-
# you may remove this if you don't need go generate
16-
- go generate ./...
1714

1815
builds:
1916
- id: thor

tracers/logger/logger.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ type Config struct {
6060
Limit int // maximum length of output, but zero means unlimited
6161
}
6262

63-
//go:generate go run github.com/fjl/gencodec -type StructLog -field-override structLogMarshaling -out gen_structlog.go
63+
//go:generate go run github.com/fjl/gencodec@v0.1.1 -type StructLog -field-override structLogMarshaling -out gen_structlog.go
64+
//go:generate
6465

6566
// StructLog is emitted to the EVM each cycle and lists information about the current internal state
6667
// prior to the execution of the statement.

tracers/native/call.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"github.com/vechain/thor/v2/vm"
3030
)
3131

32-
//go:generate go run github.com/fjl/gencodec -type callFrame -field-override callFrameMarshaling -out gen_callframe_json.go
32+
//go:generate go run github.com/fjl/gencodec@v0.1.1 -type callFrame -field-override callFrameMarshaling -out gen_callframe_json.go
3333

3434
func init() {
3535
tracers.DefaultDirectory.Register("callTracer", newCallTracer, false)

tracers/native/prestate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
"github.com/vechain/thor/v2/vm"
3131
)
3232

33-
//go:generate go run github.com/fjl/gencodec -type account -field-override accountMarshaling -out gen_account_json.go
33+
//go:generate go run github.com/fjl/gencodec@v0.1.1 -type account -field-override accountMarshaling -out gen_account_json.go
3434

3535
func init() {
3636
tracers.DefaultDirectory.Register("prestateTracer", newPrestateTracer, false)

0 commit comments

Comments
 (0)