Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 1.12/1.11 & multiple Grafana versions #70

Merged
merged 7 commits into from
Mar 5, 2020

Conversation

GiedriusS
Copy link
Collaborator

It comes from a request at #66 (comment). Doesn't take too much effort albeit it comes at the price of a dependency which allows us to handle error wrapping in a 1.11-1.13 compatible way.

This notation is only supported from Go >=1.13.
Lets support the last two/three major versions at least.
`github.com/pkg/errors` is a well known library for wrapping errors. Use
it instead of the `%w` verb in `fmt.Errorf` which was only added on Go
1.13. It provides the same exact features like `fmt.Errorf` although it
is compatible with Go 1.12 as well.
@coveralls
Copy link

coveralls commented Feb 25, 2020

Coverage Status

Coverage remained the same at 36.842% when pulling 645eed0 on GiedriusS:support_one_twelve into ab16bd9 on grafana-tools:master.

@GiedriusS GiedriusS changed the title Support 1.12/1.11 Support 1.12/1.11 & multiple Grafana versions Feb 25, 2020
@GiedriusS GiedriusS merged commit 066e3fb into grafana-tools:master Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants