Pierre Durand

Results 40 comments of Pierre Durand

> How does one reverse the operation of errors.Wrap to obtain the original error? https://github.com/pkg/errors#retrieving-the-cause-of-an-error

> where errors.Cause was returning an error which when compared to the original named error in a package did not evaluate as equal Why aren't they equal ? Did you...

@ruflin Are you OK with my new script? It does exactly the same thing.

@ruflin have you read the new script that replaces gotestcover? https://github.com/pierrre/gotestcover#deprecated ``` echo 'mode: atomic' > coverage.txt && go list ./... | xargs -n1 -I{} sh -c 'go test -covermode=atomic...

I use it in my project: https://github.com/pierrre/imageserver/blob/master/.travis.yml#L24 It works: https://travis-ci.org/pierrre/imageserver/jobs/130788141#L223

OK I understand. What is `${GOPACKAGES}` in your script? > No sure if I should put this in case of go list? Yes, try that

Please try ``` echo 'mode: atomic' > ${COVERAGE_DIR}/unit.cov && go list ${GOPACKAGES} | xargs -n1 -I{} sh -c 'go test $(RACE) -covermode=atomic -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >>...

You could paste this script in a bash file and run it each time you need it. But it does not allow you to customize arguments for each call. In...

I'm sorry if this deprecation notice is too abrupt for you. But I find this new solution easier to maintain and more customizable. (FYI I love Go and I hate...

Don't be afraid, I will not remove the repository :)