Skip to content

Commit bdd9bb0

Browse files
TippyFlitsUKTippyFlits
andauthored
fix: add missing embed import for interopnet build (#13372)
* fix: add missing embed import for interopnet build ## Proposed Changes The interopnet build was failing with: `go:embed only allowed in Go files that import embed` This was because `params_interop.go` used the `//go:embed` directive to embed `f3manifest_interop.json`, but was missing the required ` _ "embed"` import that other network parameter files have. Adding the import fixes the build error and allows all interopnet binaries to compile successfully. ## Checklist Before you mark the PR ready for review, please make sure that: - [x] Commits have a clear commit message. - [x] PR title conforms with [contribution conventions](https://github.com/filecoin-project/lotus/blob/master/CONTRIBUTING.md#pr-title-conventions) - [ ] Update CHANGELOG.md or signal that this change does not need it per [contribution conventions](https://github.com/filecoin-project/lotus/blob/master/CONTRIBUTING.md#changelog-management) - [ ] New features have usage guidelines and / or documentation updates in - [ ] [Lotus Documentation](https://lotus.filecoin.io) - [ ] [Discussion Tutorials](https://github.com/filecoin-project/lotus/discussions/categories/tutorials) - [ ] Tests exist for new functionality or change in behavior - [ ] CI is green * fix: regenerate actor code and fix formatting issues - Fixed trailing tab in params_interop.go embed import - Regenerated all actor files with make gen - Applied gofmt to all Go files This resolves CI failures for both gofmt and gen-check. --------- Co-authored-by: TippyFlits <[email protected]>
1 parent 1d29261 commit bdd9bb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build/buildconstants/params_interop.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
package buildconstants
55

66
import (
7+
_ "embed"
78
"os"
89
"strconv"
910

0 commit comments

Comments
 (0)