SREP-4236: Fix GOFLAGS and regenerate package resources#485
Conversation
Prow sets GOFLAGS=-mod=vendor which conflicts with this repo's module-based setup. Unset and re-export with -mod=mod to match the Makefile behavior. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@reedcort: This pull request references SREP-4236 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.22.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughAdded a ValidatingWebhookConfiguration resource for network resource validation and updated a test script to explicitly set Go build module flags for test execution. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@reedcort: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/hold |
|
/retest |
|
/unhold |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joshbranham, reedcort The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
GOFLAGS=-mod=modinhack/prow_pr_check.shto fix Prow pr-check failureconfig/package/resources.yaml.gotmplto includesre-network-operator-validationwebhookContext
The Prow environment sets
GOFLAGS=-mod=vendorby default, which conflicts with this repo's module-based setup. The Makefile already handles this withunexport GOFLAGS(line 29), but the newprow_pr_check.shscript was missing the equivalent.Fixes the pr-check failure in openshift/release#77097.
Test plan
GOFLAGS=-mod=vendor bash hack/prow_pr_check.shnow passes🤖 Generated with Claude Code