Repository navigation
deps: migrate go-vcr.v4 to v4.0.7 - #10613
Victor Vazquez (vhvb1989) wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a2092c44-0278-465f-aa49-ebd550f62710
📋 Prioritization NoteThanks for the contribution! The linked issue isn't in the current milestone yet. |
|
Azure Pipelines: Successfully started running 2 pipeline(s). 23 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
🟡 Changes recommended
Newly recorded cassettes can retain SAS signatures in request form data despite URL sanitization.
1 open issue
What changed in this PR
Migrates azd’s recording infrastructure to go-vcr v4.0.7, addressing #10612 separately from the dependency-only updates in #10572.
Changes:
- Updates cassette and recorder imports to v4’s package layout.
- Replaces recorder setters with constructor options while retaining legacy method/URL matching.
- Updates core dependency requirements and checksums.
| File | Description |
|---|---|
| cli/azd/test/recording/trim_response.go | Updates cassette import. |
| cli/azd/test/recording/sanitize.go | Updates sanitizer cassette import. |
| cli/azd/test/recording/sanitize_test.go | Updates sanitizer test import. |
| cli/azd/test/recording/recording.go | Migrates recorder initialization and preserves matching. |
| cli/azd/test/recording/proxy.go | Updates recorder import. |
| cli/azd/test/recording/poll_discard.go | Updates polling cassette import. |
| cli/azd/test/recording/poll_discard_test.go | Updates polling test import. |
| cli/azd/test/recording/func_publish_poller.go | Updates publish-poller cassette import. |
| cli/azd/test/recording/func_publish_poller_test.go | Updates publish-poller test import. |
| cli/azd/test/cmdrecord/proxy/main.go | Updates command-proxy recorder import. |
| cli/azd/test/cmdrecord/cmdrecorder.go | Updates command-recorder import. |
| cli/azd/test/cmdrecord/cmdrecorder_test.go | Updates command-recorder test import. |
| cli/azd/go.sum | Refreshes dependency checksums. |
| cli/azd/go.mod | Pins go-vcr v4.0.7 and its YAML dependency. |
Review effort: Balanced
|
|
||
| // Sanitize | ||
| vcr.AddHook(func(i *cassette.Interaction) error { | ||
| recorderOptions = append(recorderOptions, recorder.WithHook(func(i *cassette.Interaction) error { |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|

Summary
Fixes #10612.
Migrate
gopkg.in/dnaeon/go-vcr.v3togopkg.in/dnaeon/go-vcr.v4@v4.0.7in source and module requirements. This is separate from the source-change-free dependency updates in #10572.pkglayout and replace removed recorder setters with functional constructor options.Validation
go build -mod=readonly ./...passes in core and all 18 Go extension modules.go tool mage checkDependencyVersionspasses.go test -mod=readonly ./... -shortpasses in these source-affected modules:cli/azdgit diff --checkpasses.