Skip to content

fix: use glob for go_library srcs in BUILD.bazel#278

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
AidanTanium:fix/add-feat-files-to-bazel-build
Apr 4, 2026
Merged

fix: use glob for go_library srcs in BUILD.bazel#278
alexcrichton merged 1 commit intobytecodealliance:mainfrom
AidanTanium:fix/add-feat-files-to-bazel-build

Conversation

@AidanTanium
Copy link
Copy Markdown
Contributor

The srcs list was hand-maintained and fell out of sync when v43 split code into feature-gated files (config_feat_*.go, linker_feat_wasi.go, module_feat_cranelift.go, store_feat_wasi.go, etc.). This causes Bazel builds to fail with undefined symbol errors since the new files were never added to srcs.

Switch to glob() to match the pattern already used for go_test srcs, so new source files are automatically picked up.

Would also appreciate cutting a v43.0.2 with this when merged.

The srcs list was hand-maintained and fell out of sync when v43 split
code into feature-gated files (config_feat_*.go, linker_feat_wasi.go,
module_feat_cranelift.go, store_feat_wasi.go, etc.). This caused Bazel
builds to fail with undefined symbol errors since the new files were
never added to srcs.

Switch to glob() to match the pattern already used for go_test srcs,
so new source files are automatically picked up.
Copy link
Copy Markdown
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll work on releasing this on Monday

@alexcrichton alexcrichton merged commit 5fdace7 into bytecodealliance:main Apr 4, 2026
19 checks passed
@AidanTanium AidanTanium deleted the fix/add-feat-files-to-bazel-build branch April 4, 2026 01:47
@AidanTanium
Copy link
Copy Markdown
Contributor Author

Thanks! I'll work on releasing this on Monday

Any movement on this?

@alexcrichton
Copy link
Copy Markdown
Member

alexcrichton commented Apr 7, 2026

Apologies this totally slipped my mind, tagged now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants