Skip to content

Commit 363105f

Browse files
committed
Fix VM initialization bug and update module dependencies
Ensure `instructions` is properly assigned during VM initialization to prevent runtime issues. Update `go.mod` and `go.sum` to include the latest version of `github.com/itrn0/risor/modules/gha` and adjust indirect dependencies for consistency.
1 parent d991376 commit 363105f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ toolchain go1.23.1
66

77
require (
88
github.com/fatih/color v1.17.0
9-
github.com/mattn/go-isatty v0.0.20
9+
github.com/itrn0/risor/modules/gha v1.7.4
1010
github.com/olekukonko/tablewriter v0.0.5
11-
github.com/itrn0/risor/modules/gha v1.7.3
1211
github.com/stretchr/testify v1.9.0
1312
gopkg.in/yaml.v3 v3.0.1
1413
)
@@ -17,6 +16,7 @@ require (
1716
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
1817
github.com/kr/pretty v0.3.1 // indirect
1918
github.com/mattn/go-colorable v0.1.13 // indirect
19+
github.com/mattn/go-isatty v0.0.20 // indirect
2020
github.com/mattn/go-runewidth v0.0.16 // indirect
2121
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
2222
github.com/rivo/uniseg v0.4.7 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1
33
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
44
github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4=
55
github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI=
6+
github.com/itrn0/risor/modules/gha v1.7.4 h1:gFeMFZUfoJHjZkRYHg6WaEYlJ+ZMevKrQqtFBUWPti0=
7+
github.com/itrn0/risor/modules/gha v1.7.4/go.mod h1:VBza+m+VJSVrOsNAAl5XSufe/KoCwy9MFVLqT2LPJMY=
68
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
79
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
810
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
@@ -23,8 +25,6 @@ github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6
2325
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
2426
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
2527
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
26-
github.com/risor-io/risor/modules/gha v1.6.1-0.20240927135333-245e7b83abf4 h1:NpNMhq5lOkx2TR1UVGSy8tgQ5xWSJbbU0YdHYaKNDPw=
27-
github.com/risor-io/risor/modules/gha v1.6.1-0.20240927135333-245e7b83abf4/go.mod h1:NeIKOZddXtDiLQlpF3YPFGmy/T4Ca91ZhpUAYO6QELs=
2828
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
2929
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
3030
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=

vm/vm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ func (vm *VirtualMachine) Clone() (*VirtualMachine, error) {
10261026
sp: -1,
10271027
ip: 0,
10281028
fp: 0,
1029-
instructions: 0,
1029+
instructions: vm.instructions,
10301030
running: false,
10311031
importer: vm.importer,
10321032
main: vm.main,

0 commit comments

Comments
 (0)