Repository navigation
Fix main build: undefined topRawSafeOutputs in imports.go - #77643
Merged
Merged
Conversation
#77559 and #77560 merged with a semantic conflict: the parameter topRawSafeOutputs was renamed to explicitSafeOutputs, leaving an undefined reference that broke every Go build. Keep import values OR-combined, with only the main workflow able to override them. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the workflow compiler merge-conflict fix.
No open issues 🎉
What changed in this PR
Fixes a semantic merge conflict in gh-aw’s workflow compiler that broke builds, while preserving the intended require-agent-success import behavior.
Changes:
- Replaces the undefined
topRawSafeOutputsreference withexplicitSafeOutputs. - Keeps imported
require-agent-successvalues OR-combined while preserving explicit main-workflow overrides.
| File | Description |
|---|---|
pkg/workflow/imports.go |
Fixes the undefined variable and preserves agent-success gate merge semantics. |
Review effort: Balanced (dynamic)
Contributor
|
🎉 This pull request is included in a new release. Release: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two PRs merged with a semantic conflict, so Go builds on
mainfailed withpkg/workflow/imports.go:585:19: undefined: topRawSafeOutputs. Most jobs in CI, CGO, Windows build, Doc Build and Work Queue Compilation failed with that error.mergeSafeOutputConfigparametertopRawSafeOutputstoexplicitSafeOutputs. That map holds the main workflow's keys plus keys that imports set explicitly.require-agent-successmerge that still used the old name.Fix
explicitSafeOutputs.require-agent-successis removed from the explicit-keys map unless the main workflow defines it. Import values stay OR-combined, and only the main workflow can override them, asTestSafeOutputsRequireAgentSuccessImportsexpects. Without this, an earlier import'sfalsewould block a later import'strue.Validation
go build ./...andmake build-wasmpassgo test ./pkg/workflow -run 'Import|SafeOutput|RequireAgent|AgentSuccess|Merge'passescgo.ymlpass on./pkg/workflow