Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v0.7.0
->v0.9.1
^3.0.0
->^3.10.1
Release Notes
pkg/errors
v0.9.1
: errors 0.9.1Compare Source
pkg/errors 0.9.1 is a bug fix release for errors 0.9.0. This restore the previous behaviour on Cause method, this behaviour was changed on the PR: #215 and many breaking changes was produced by that.
v0.9.0
: errors 0.9.0Compare Source
errors 0.9.0 is a preparation release for a 1.0 final release. Also we were working on removing support for Go 1.8, 1.9 and 1.10 and earlier, and become compatible this package with new way of errors on Go 1.13.
We tried to move into
runtime.CallerFrames
but this was not possible, you can show the explanation here: Issue 188.The motivation for do the backward compatible this package with Go 1.13 is that you can migrate the easy way for this to the new way.
Now you could use the methods,
Is
andAs
, and theUnwrap()
interface like on the standard library.The method
Cause
is now compatible withfmt.Errorf("%w", err)
and with theUnwrap()
interface.On the same way the methods related with
wrapping
on this package now are compatible withCause
andUnwrap()
interface.Improvements
.travis.yml
Now use make file.Bugs fixed
.travis.yml
Adjust Go versions. Thanks @komuw, @aperezgv0.8.1
: errors 0.8.1Compare Source
pkg/errors 0.8.1 is a bug fix release for errors 0.8.0. It will be the last version to support Go 1.8 and below. pkg/errors 0.9 and above will require Go 1.9 for the new
runtime.CallersFrames
API.pkg/errors 0.8.1 also adds one new feature,
errors.WithMessagef
. Ideally this would be held over til 0.9, but that complicates the switch toruntime.CallersFrames
.Improvements
errors.WithMessagef
. Thanks @chemicL.Bugs fixed
.travis.yml
. Adjust Go versions. Thanks @AlekSi, @dvrkps, @HaraldNordgren, and @komuwv0.8.0
: errors 0.8.0Compare Source
What's new since version 0.7.1
errors 0.8.0 decomposes
Wrap
(andWrapf
) into their component operations, namely adding a message to an error, and adding a stack trace to an error, which were previously merged into a single operation.This is accomplished by adding two top level functions,
errors.WithMessage
anderrors.WithStack
, and rewritingWrap
andWrapf
in terms of these operations.The motivation for this change was need to treat each of the following operations as distinct:
The addition of
WithStack
andWithMessage
increases the surface area of this package by two methods, after long discussions at GopherCon 2016 it was felt strongly that destructuring the operation ofWrap
andWrapf
was necessary.For the moment
Wrap
andWrapf
remain, but depending on your feedback may be deprecated in future releases. Please leave comments via the issue link.Thanks to @nmiyake and @fabstu for their assistance in preparing this release.
Bug fixes
v0.7.1
: errors 0.7.1Compare Source
What's new since version 0.7.0
0.7.1 is a minor release in the 0.7 series which contains bugfixes, documentation improvements and cleanups and some internal refactoring.
Improvements
StackTrace
interface tostacktracer
in docs and examples.Bug fixes
pkg/errors
is vendored. Fixes #77. Thanks @expConfiguration
📅 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.