fix(deps): update module gopkg.in/resty.v1 to v2#242
fix(deps): update module gopkg.in/resty.v1 to v2#242red-hat-konflux-kflux-prd-rh02[bot] wants to merge 1 commit into
Conversation
Signed-off-by: red-hat-konflux-kflux-prd-rh02 <190377777+red-hat-konflux-kflux-prd-rh02[bot]@users.noreply.github.com>
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @red-hat-konflux-kflux-prd-rh02[bot]. Thanks for your PR. I'm waiting for a openshift-hyperfleet member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
📝 WalkthroughSummary by CodeRabbit
Walkthrough
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Supply chain surface (CWE-1104 / CWE-829):
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@go.mod`:
- Line 41: The go.mod file has been updated to pin resty.v2, but five test files
still import the v1 version which causes a module graph conflict. Update the
import statements in the following test files to use gopkg.in/resty.v2 instead
of gopkg.in/resty.v1: clusters_test.go, metadata_test.go, node_pools_test.go,
openapi_test.go, and wifconfigs_test.go. Replace each occurrence of
"gopkg.in/resty.v1" with "gopkg.in/resty.v2" in the import sections of these
files, then verify the resty.v2 API usage is compatible with the existing test
code.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Central YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: c282ed83-8ba0-4115-880a-ff98a0698959
📒 Files selected for processing (1)
go.mod
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
openshift-hyperfleet/architecture(manual)openshift-hyperfleet/hyperfleet-api(manual)openshift-hyperfleet/hyperfleet-sentinel(manual)openshift-hyperfleet/hyperfleet-adapter(manual)openshift-hyperfleet/hyperfleet-broker(manual)
| go.opentelemetry.io/otel/trace v1.43.0 | ||
| go.uber.org/mock v0.6.0 | ||
| gopkg.in/resty.v1 v1.12.0 | ||
| gopkg.in/resty.v2 v2.17.2 |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
rg -n --glob '!**/vendor/**' 'gopkg\.in/resty\.v1' .Repository: openshift-hyperfleet/hyperfleet-api
Length of output: 563
go.mod pins resty.v2 but five test files still import resty.v1 — build will fail.
go.mod now contains only gopkg.in/resty.v2 v2.17.2, but the following test files still import gopkg.in/resty.v1:
test/integration/clusters_test.go:16test/integration/metadata_test.go:26test/integration/node_pools_test.go:11test/integration/openapi_test.go:26test/integration/wifconfigs_test.go:12
Without simultaneous migration of these imports to resty.v2, the module graph cannot satisfy v1 imports and tests will not compile or run.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@go.mod` at line 41, The go.mod file has been updated to pin resty.v2, but
five test files still import the v1 version which causes a module graph
conflict. Update the import statements in the following test files to use
gopkg.in/resty.v2 instead of gopkg.in/resty.v1: clusters_test.go,
metadata_test.go, node_pools_test.go, openapi_test.go, and wifconfigs_test.go.
Replace each occurrence of "gopkg.in/resty.v1" with "gopkg.in/resty.v2" in the
import sections of these files, then verify the resty.v2 API usage is compatible
with the existing test code.
This PR contains the following updates:
v1.12.0→v2.17.2Warning
Some dependencies could not be looked up. Check the warning logs for more information.
Release Notes
go-resty/resty (gopkg.in/resty.v1)
v2.17.2Compare Source
Release Notes
Backport
Release
Full Changelog: go-resty/resty@v2.17.1...v2.17.2
v2.17.1Compare Source
Release Notes
Bug Fixes
Full Changelog: go-resty/resty@v2.17.0...v2.17.1
v2.17.0Compare Source
Release Notes
Bug Fixes
Backport
Release Updates
New Contributors
Full Changelog: go-resty/resty@v2.16.5...v2.17.0
v2.16.5Compare Source
Release Notes
Bug Fixes
Documentation
Full Changelog: go-resty/resty@v2.16.4...v2.16.5
v2.16.4Compare Source
Release Notes
Bug Fixes
Documentation
New Contributors
Full Changelog: go-resty/resty@v2.16.3...v2.16.4
v2.16.3Compare Source
Release Notes
Full Changelog: go-resty/resty@v2.16.2...v2.16.3
v2.16.2Compare Source
Release Notes
Bug Fixes
Full Changelog: go-resty/resty@v2.16.1...v2.16.2
v2.16.1Compare Source
Release Notes
Bug Fixes
Full Changelog: go-resty/resty@v2.16.0...v2.16.1
v2.16.0Compare Source
Release Notes
New Features
Enhancements
Documentation
New Contributors
Full Changelog: go-resty/resty@v2.15.3...v2.16.0
v2.15.3Compare Source
Release Notes
Bug Fixes
Documentation
New Contributors
Full Changelog: go-resty/resty@v2.15.2...v2.15.3
v2.15.2Compare Source
Release Notes
Bug Fixes
errors.Join, just use custom error approach by @jeevatkm in #863Documentation
Full Changelog: go-resty/resty@v2.15.1...v2.15.2
v2.15.1Compare Source
Release Notes
Bug Fixes
Documentation
Full Changelog: go-resty/resty@v2.15.0...v2.15.1
v2.15.0Compare Source
Release Notes
New Features
Enhancements
Bug Fixes
Build
Documentation
New Contributors
Full Changelog: go-resty/resty@v2.14.0...v2.15.0
v2.14.0Compare Source
Release Notes
New Features
Enhancements
Upstream Fixes
Test Cases
Documentation
New Contributors
Full Changelog: go-resty/resty@v2.13.1...v2.14.0
v2.13.1Compare Source
Release Notes
Fixes
Full Changelog: go-resty/resty@v2.13.0...v2.13.1
v2.13.0Compare Source
Release Notes
Enhancements
Bug Fixes
New Contributors
Full Changelog: go-resty/resty@v2.12.0...v2.13.0
v2.12.0Compare Source
Release Notes
Enhancements
Bug Fixes
Documentation
SetHostURLtoSetBaseURLby @purofle in #772New Contributors
Full Changelog: go-resty/resty@v2.11.0...v2.12.0
v2.11.0: ReleaseCompare Source
Release Notes
Bug Fixes
New Contributors
Full Changelog: go-resty/resty@v2.10.0...v2.11.0
v2.10.0: ReleaseCompare Source
Release Notes
Optimizations
Enhancements
Bug Fixes
New Contributors
Full Changelog: go-resty/resty@v2.9.1...v2.10.0
v2.9.1: ReleaseCompare Source
Release Notes
Full Changelog: go-resty/resty@v2.9.0...v2.9.1
v2.9.0: ReleaseCompare Source
Release Notes
New Features
Enhancements
Bug Fixes
Test Cases
Documentation
New Contributors
Full Changelog: go-resty/resty@v2.8.0...v2.9.0
v2.8.0: ReleaseCompare Source
Release Notes
New Features
Enhancements
Bug Fixes
Documentation
Build
Deprecated Removal
New Contributors
Full Changelog: go-resty/resty@v2.7.0...v2.8.0
v2.7.0: ReleaseCompare Source
Release Notes
Enhancements
SetHeaderMultiValuesfor easier adding of multi-value http headers #432 PR #452 @mhdiiilhamRetryConditionstoresty.Request#315, #324, #433, PR #436 @rohitkg98SetBaseURLand deprecatedSetHostURL#441 PR #480 @jeevatkmclient.PathParamsandrequest.PathParamsPR #476 @lavoieslBug Fixes
Tests
Documentation
v2.6.0: ReleaseCompare Source
Release Notes
Features
Enhancements
General
v2.5.0: ReleaseCompare Source
Release Notes
Bug Fixes
v2.4.0: ReleaseCompare Source
Release Notes
Features
OnErrorhook that is called when a Resty request returns an error PR #398 @justenwalkerEnhancements
HeaderAuthorizationKeyin theClientstruct, it can be configured #387 PR #403 @jeevatkmSetPathParammethod inClientsndRequestfor setting single path param #402 PR #403 @jeevatkmhttp.NoBodywhen content length is settrueand request body is nil #395 PR #403 @moorereason @jeevatkmBug Fixes
Documentation
v2.3.0: ReleaseCompare Source
Release Notes
New Features
Enhancements
Bug Fixes
v2.2.0: ReleaseCompare Source
Release Notes
Enhancements
Request.Send()method to execute Request as-is PR #286 @dan-risingdebugBodySizeLimitto Request debug logger PR #297 @viennaddSetRootCertificateFromStringmethod to read cert from string PR #313 @dzaytsev91Bug Fixes
EnableTrace#285, PR #284 @xixinjieDocumentation
v2.1.0: ReleaseCompare Source
Release Notes
Enhancements
http.Request.GetBody, so request body manipalation can be done viaPreRequestHook(such as adding Content-MD5 entity-header, etc) #242 @jeevatkmSetCookieandSetCookiesmethod added intoRequestobject #257 @jeevatkmapplication/json#258 @jeevatkmBug Fixes
%#270, PR #270 @kmanleyv2.0.0: ReleaseCompare Source
Release Notes
How to use Resty v2?
Please refer to README
New Features
RetryAfterFuncaddition into Resty's retry capabilities PR #237 @neganovalexey, see RetryAfterFuncEnhancements
http.Transportcreation simliar to Langauge default client #212 @jeevatkmmultipart/form-datapayload without filename and content type values PR #236 @larryhuPATCHinto multipart support #239 @jeevatkmBreaking Changes - Migrating v1.x to v2
github.com/go-resty/resty#215 @jeevatkmPreRequestHooksignature have been updated tofunc(cl *Client, r *http.Request) error#217 @jeevatkmRetryConditionFunc func(*Response, error) bool#237, #214 @neganovalexey, [@jeevatkm](https://reConfiguration
📅 Schedule: Branch creation - "on monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
To execute skipped test pipelines write comment
/ok-to-test.Documentation
Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.