equinixmetal-archive / packngo

[Deprecated] A Golang client for the Equinix Metal API. (Packet is now Equinix Metal)
https://deploy.equinix.com/labs/equinix-sdk-go/
Other
79 stars 53 forks source link

fix(deps): update module github.com/dnaeon/go-vcr to v3 #361

Open renovate[bot] opened 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/dnaeon/go-vcr v1.2.0 -> v3.2.0 age adoption passing confidence

Release Notes

dnaeon/go-vcr (github.com/dnaeon/go-vcr) ### [`v3.2.0`](https://togithub.com/dnaeon/go-vcr/releases/tag/v3.2.0) [Compare Source](https://togithub.com/dnaeon/go-vcr/compare/v3.1.2...v3.2.0) See [v3.2.0 release notes](https://togithub.com/dnaeon/go-vcr/blob/v3/CHANGELOG.org#2024-03-13). ### [`v3.1.2`](https://togithub.com/dnaeon/go-vcr/releases/tag/v3.1.2) [Compare Source](https://togithub.com/dnaeon/go-vcr/compare/v3.1.1...v3.1.2) New field called `DiscardOnSave` has been added to the `cassette.Interaction` type, which allows for a hook to set it to `true`, and as a result to discard the interaction from saving it on disk. See [#​80](https://togithub.com/dnaeon/go-vcr/issues/80) for more details. ### [`v3.1.1`](https://togithub.com/dnaeon/go-vcr/releases/tag/v3.1.1) [Compare Source](https://togithub.com/dnaeon/go-vcr/compare/v3.1.0...v3.1.1) Cassettes with no recorded interactions will be saved on disk. Previous behaviour was to skip saving the cassette at all. See [#​79](https://togithub.com/dnaeon/go-vcr/issues/79) ### [`v3.1.0`](https://togithub.com/dnaeon/go-vcr/releases/tag/v3.1.0) [Compare Source](https://togithub.com/dnaeon/go-vcr/compare/v3.0.1...v3.1.0) **NOTE**: This version contains breaking API change. Summary of changes since previous release. - The `recorder.FilterFunc` has been removed. It is now replaced by `recorder.HookFunc` type. - The `Recorder.AddFilter()` and `Recorder.AddPreSaveFilter()` methods have been removed. They are now replaced by the `Recorder.AddHook()` method. - Added different kinds of hooks supported by the recorder - `AfterCaptureHook`, `BeforeSaveHook` and `BeforeResponseReplayHook`. ### [`v3.0.1`](https://togithub.com/dnaeon/go-vcr/releases/tag/v3.0.1) [Compare Source](https://togithub.com/dnaeon/go-vcr/compare/v3.0.0...v3.0.1) Minor updates, adding two new utility methods to the recorder, which can be used to inspect the state of the recorder and the cassette. - `IsRecording()` - `IsNewCassette()` See [https://github.com/dnaeon/go-vcr/pull/76](https://togithub.com/dnaeon/go-vcr/pull/76) ### [`v3.0.0`](https://togithub.com/dnaeon/go-vcr/releases/tag/v3.0.0) [Compare Source](https://togithub.com/dnaeon/go-vcr/compare/v2.3.0...v3.0.0) `go-vcr v3` is ready. **NOTE**: This release is not backwards-compatible with previous versions of the cassettes used by `go-vcr`. If you are upgrading to `v3` you should re-create your test cassettes. A summary of changes for this release: - API has been refactored and cleaned up - Custom recorder options are now specified as `recorder.Options` - The recorder modes which are now supported are `ModeRecordOnly`, `ModeRecordOnce`, `ModeReplayOnly`, `ModeReplayWithNewEpisodes` and `ModePassthrough`. Please refer to the API documentation for more details on their use cases - In order to create recorders with custom options you should use the `recorder.NewWithOptions` function from now on - The default mode of the recorder is now `ModeRecordOnce` - `ModeDisabled` has been removed and is now replaced by `ModePassthrough` - Cassette format has been changed and the supported version of the cassette from now on is `v2`. - Additional fields have been added to the cassette to allow developers to create more complex matchers based on the existing fields - Each interaction in the cassette now has a unique integer id, specifying the position of the interaction in the cassette - Utility method on the recorder can now return a pre-configured HTTP client with the recorder's transport - `GetDefaultClient()` - CI/CD pipeline has been transferred to Github actions - Closed out some long standing issues - Extended and refactored test cases - etc ### [`v2.3.0`](https://togithub.com/dnaeon/go-vcr/releases/tag/v2.3.0) [Compare Source](https://togithub.com/dnaeon/go-vcr/compare/v2.1.0...v2.3.0) - Cleaned up `v2` package structure - Switched from `gopkg.in/yaml.v2` to `gopkg.in/yaml.v3`. Closes [#​70](https://togithub.com/dnaeon/go-vcr/issues/70) and [#​71](https://togithub.com/dnaeon/go-vcr/issues/71) - Package import path for `go-vcr` has changed from `github.com/dnaeon/go-vcr` to `gopkg.in/dnaeon/go-vcr.v2`. See [#​73](https://togithub.com/dnaeon/go-vcr/issues/73) - `v2` of `go-vcr` resides in the `v2` branch, which is now the default - Fixed a regression where the default mode of the recorder has been changed. See [#​72](https://togithub.com/dnaeon/go-vcr/issues/72) ### [`v2.1.0`](https://togithub.com/dnaeon/go-vcr/releases/tag/v2.1.0) [Compare Source](https://togithub.com/dnaeon/go-vcr/compare/v2.0.1...v2.1.0) Update to gopkg.in/yaml.v3 ### [`v2.0.1`](https://togithub.com/dnaeon/go-vcr/releases/tag/v2.0.1) [Compare Source](https://togithub.com/dnaeon/go-vcr/compare/v2.0.0...v2.0.1) This release contains a breaking change. When upgrading to `v2.0.0` make sure that you re-create your cassettes. A new flag of the `recorder.Recorder` (the `SkipRequestLatency` one) is supported which allows to skip latency simulation during replay. See [https://github.com/dnaeon/go-vcr/pull/63](https://togithub.com/dnaeon/go-vcr/pull/63) for more details. ### [`v2.0.0`](https://togithub.com/dnaeon/go-vcr/compare/v1.2.0...v2.0.0) [Compare Source](https://togithub.com/dnaeon/go-vcr/compare/v1.2.0...v2.0.0)

Configuration

šŸ“… Schedule: Branch creation - At any time (no schedule defined), 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.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 1 year ago

āš  Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

ā™» Renovate will retry this branch, including artifacts, only when one of the following happens:

The artifact failure details are included below:

File name: go.sum
Command failed: go get -d -t ./...
go: github.com/dnaeon/go-vcr/v3@v3.2.0: parsing go.mod:
    module declares its path as: gopkg.in/dnaeon/go-vcr.v3
            but was required as: github.com/dnaeon/go-vcr/v3