mirror of
https://github.com/Comfy-Org/github-workflows.git
synced 2026-11-05 00:17:37 +00:00
[PR #52] [MERGED] fix(pr-size): build check-pr-size with GOWORK=off for consumers with a root go.work #64
Labels
No labels
cursor-review-catalog-drift
groom
groom
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/github-workflows#64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/github-workflows/pull/52
Author: @mattmillerai
Created: 7/21/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @mattmillerai
Base:
main← Head:matt/pr-size-gowork-off-for-consumer-gowork📝 Commits (3)
349e8dbfix(pr-size): build check-pr-size with GOWORK=off for consumers with a root go.work2d71626fix(pr-size): quote GOWORK: "off" so it is not coerced to boolean falsef9d638aMerge remote-tracking branch 'origin/main' into matt/pr-size-gowork-off-for-consumer-gowork📊 Changes
1 file changed (+9 additions, -8 deletions)
View changed files
📝
.github/workflows/pr-size.yml(+9 -8)📄 Description
Problem
The reusable
pr-size.ymlchecks out thecheck-pr-sizetool into_pr_size_tool/under the consumer repo's checkout, then runsgo buildthere. When the consumer repo has ago.workat its checkout root (e.g. Comfy-Org/cloud),go builddiscovers that workspace file, sees the tool module isn't one of its listed modules, and fails:This is blocking Comfy-Org/cloud#5336 (the flip to this reusable caller, BE-3483) — the
pr-sizejob dies at the build step before it can even count the diff.Fix
Set
GOWORK: offon the Build check-pr-size step. The tool module is dependency-free (nogo.sum), so building it in single-module mode is safe and correct — it just stops the consumer's workspace from leaking into the tool build.Verification
Reproduced locally with a nested module under a root
go.workthat lists only other modules:Once merged, Comfy-Org/cloud#5336's caller will be re-pinned to the merged SHA.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.