Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Conversation

@aperezg
Copy link
Member

@aperezg aperezg commented Nov 1, 2019

Also deprecate Go 1.10

Copy link

@joanlopez joanlopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@aperezg aperezg added this to the 0.9 milestone Nov 1, 2019
Sherlock-Holo added a commit to Sherlock-Holo/errors that referenced this pull request Nov 7, 2019
some change are doing by PR pkg#206 and pkg#212 , so I don't need to do it

Signed-off-by: Sherlock Holo <[email protected]>
Copy link
Contributor

@Sherlock-Holo Sherlock-Holo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@puellanivis
Copy link

The previous PR to change version information in travis is: PR-200 which is simply titled, “travis.yml: add Go 1.12”

I don’t think it’s necessary to go into why 1.10 support is being dropped, it’s a natural part of upgrading to covering 1.13.

Next up, do things actually break such that we need GO111MODULE=off or is this simply a ”since there is no go.mod file, I’m assuming I have to turn off GO111MODULE”? If it does not actually break things to no specify it, then I see no good reason to change it now.

@aperezg
Copy link
Member Author

aperezg commented Nov 8, 2019

Thanks for your comments @puellanivis, they seem very reasonable to me so, I will do the changes that you're proposing me

@aperezg aperezg changed the title fix travis, 1.10 doesnt support by unconvert anymore travis.yml: add Go 1.12 Nov 9, 2019
@aperezg aperezg changed the title travis.yml: add Go 1.12 travis.yml: add Go 1.13 Nov 9, 2019
@aperezg aperezg merged commit 91f1693 into pkg:master Nov 9, 2019
@aperezg aperezg deleted the fix_travis branch November 9, 2019 08:33
aperezg pushed a commit that referenced this pull request Jan 3, 2020
* feat: support std errors functions

add function `Is`, `As` and `Unwrap`, like std errors, so that we can
continue to use pkg/errors with go1.13 compatibility

Signed-off-by: Sherlock Holo <[email protected]>

* style: delete useless comments

Signed-off-by: Sherlock Holo <[email protected]>

* build: update makefile

update makefile to download dependencies before test anything

Signed-off-by: Sherlock Holo <[email protected]>

* build: fix makefile

Signed-off-by: Sherlock Holo <[email protected]>

* chore: delete useless comments

Signed-off-by: Sherlock Holo <[email protected]>

* Restore Makefile

* revert: revert some change

some change are doing by PR #206 and #212 , so I don't need to do it

Signed-off-by: Sherlock Holo <[email protected]>

* test: add more check for As unit test

Signed-off-by: Sherlock Holo <[email protected]>

* revert: only support Is As Unwrap for >=go1.13

Signed-off-by: Sherlock Holo <[email protected]>

* feat(Unwrap): allow <go1.13 can use Unwrap

`Unwrap` just use type assert, it doesn't need go1.13 actually

Signed-off-by: Sherlock Holo <[email protected]>

* test: add go1.13 errors compatibility check

Signed-off-by: Sherlock Holo <[email protected]>

* refactor(Unwrap): don't allow <go1.13 use Unwrap

If we implement Unwrap ourselves, may create a risk of incompatibility
if Go 1.14 subtly changes its `Unwrap` implementation.
<go1.13 users doesn't have `Is` or `As`, if they want, they will use
xerrors and it also provides `Unwrap`

Signed-off-by: Sherlock Holo <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants