Skip to content

fix: remove duplicate repoConfigLog declaration breaking wasm build#30268

Merged
pelikhan merged 1 commit intomainfrom
copilot/fix-wasm-build
May 5, 2026
Merged

fix: remove duplicate repoConfigLog declaration breaking wasm build#30268
pelikhan merged 1 commit intomainfrom
copilot/fix-wasm-build

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 5, 2026

The wasm build (GOOS=js GOARCH=wasm) failed with a redeclared in this block error because repoConfigLog was independently declared in both repo_config.go and compiler_repo_config.go within the same workflow package.

Changes

  • pkg/workflow/compiler_repo_config.go: Remove the duplicate var repoConfigLog declaration and its now-unused logger import — the variable from repo_config.go is already in scope across the package.

@pelikhan pelikhan marked this pull request as ready for review May 5, 2026 04:45
Copilot AI review requested due to automatic review settings May 5, 2026 04:45
@pelikhan pelikhan merged commit 8b0bb39 into main May 5, 2026
@pelikhan pelikhan deleted the copilot/fix-wasm-build branch May 5, 2026 04:45
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes the GOOS=js GOARCH=wasm build failure caused by a duplicate repoConfigLog declaration within the workflow package.

Changes:

  • Removes the redundant repoConfigLog declaration (and its logger import) from compiler_repo_config.go so the package-level variable in repo_config.go is used instead.
Show a summary per file
File Description
pkg/workflow/compiler_repo_config.go Removes duplicate logger variable/import to eliminate redeclared in this block compilation error for wasm builds.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment on lines 3 to 5
// loadRepoConfig loads and caches repository-level configuration from aw.json.
func (c *Compiler) loadRepoConfig() (*RepoConfig, error) {
if c.repoConfigLoaded {
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.

3 participants