Commit 4e7e15b
committed
fix: resolve Go module dependency issues and build failures
- Added missing go.sum file with go.bytecodealliance.org/cm v0.3.0 dependency
- Fixed failing Go targets that used main.go with WIT-generated imports:
- calculator_component_debug: Switch to calculator_manual.go (no WIT deps)
- simple_test: Switch to simple_wasi.go (no WIT deps)
- multi_file_test: Switch to calculator_basic.go (no WIT deps)
- Fixed division by zero error in calculator_basic.go using math.NaN()
- Updated go.mod to Go 1.23.0
Resolves CI failures:
- main.go:4:2: go.bytecodealliance.org/[email protected]: missing go.sum entry
- main.go:5:2: missing go.sum entry for module providing package
- calculator_basic.go:25:16: invalid operation: division by zero1 parent 15a4a6e commit 4e7e15b
File tree
4 files changed
+10
-6
lines changed- examples/go_component
4 files changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | | - | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments