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

Upgrade grafana-plugin-sdk-go (deps): Bump github.com/grafana/grafana-plugin-sdk-go from 0.259.4 to 0.260.1 #1078

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 2, 2024

Bumps github.com/grafana/grafana-plugin-sdk-go from 0.259.4 to 0.260.1.

Release notes

Sourced from github.com/grafana/grafana-plugin-sdk-go's releases.

v0.260.1

What's Changed

Full Changelog: grafana/grafana-plugin-sdk-go@v0.260.0...v0.260.1

Compatibility

gorelease -base v0.260.0 -version v0.260.1
# summary
v0.260.1 is a valid semantic version for this release.

v0.260.0

What's Changed

Full Changelog: grafana/grafana-plugin-sdk-go@v0.259.4...v0.260.0

Compatibility

Below incompatible changes in github.com/grafana/grafana-plugin-sdk-go/experimental/errorsource should be compatible since we've introduced type aliases and seems like gorelease doesn't take that into consideration. Main change is changing Error to a type alias for status.ErrorWithSource. Additionally, we have removed the experimental package github.com/grafana/grafana-plugin-sdk-go/experimental/errorsource/httpclient, as the error source middleware is now included in the HTTP client by default. Consequently, this experimental package is no longer needed.

grafana-plugin-sdk-go % gorelease -base v0.259.4 -version v0.260.0
# github.com/grafana/grafana-plugin-sdk-go/backend
## compatible changes
ErrorResponseWithErrorSource: added
ErrorWithSource: added
NewErrorWithSource: added
PluginError: added

github.com/grafana/grafana-plugin-sdk-go/backend/httpclient

compatible changes

ErrorSourceRoundTripper: added

github.com/grafana/grafana-plugin-sdk-go/experimental/errorsource

incompatible changes

Error: changed from Error to github.com/grafana/grafana-plugin-sdk-go/experimental/status.ErrorWithSource
New: changed from func(error, github.com/grafana/grafana-plugin-sdk-go/experimental/status.Source, github.com/grafana/grafana-plugin-sdk-go/backend.Status) Error to func(error, github.com/grafana/grafana-plugin-sdk-go/experimental/status.Source, github.com/grafana/grafana-plugin-sdk-go/backend.Status) github.com/grafana/grafana-plugin-sdk-go/experimental/status.ErrorWithSource
SourceError: changed from func(github.com/grafana/grafana-plugin-sdk-go/experimental/status.Source, error, bool) Error to func(github.com/grafana/grafana-plugin-sdk-go/experimental/status.Source, error, bool) github.com/grafana/grafana-plugin-sdk-go/experimental/status.ErrorWithSource

github.com/grafana/grafana-plugin-sdk-go/experimental/errorsource/httpclient

incompatible changes

</tr></table>

... (truncated)

Commits
  • 7ef35b2 Fix error source bug in ErrorResponseWithErrorSource (#1158)
  • 316ae3b Fix proxy hash (#1157)
  • 96b34c3 Deprecate experimental/errorsource and remove `experimental/errorsource/htt...
  • 66c983f build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 (#1156)
  • 10f03df build(deps): bump golang.org/x/net from 0.30.0 to 0.31.0 (#1154)
  • a9d4b7b build(deps): bump golang.org/x/oauth2 from 0.23.0 to 0.24.0 (#1153)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

…-plugin-sdk-go

Bumps [github.com/grafana/grafana-plugin-sdk-go](https://github.com/grafana/grafana-plugin-sdk-go) from 0.259.4 to 0.260.1.
- [Release notes](https://github.com/grafana/grafana-plugin-sdk-go/releases)
- [Commits](grafana/grafana-plugin-sdk-go@v0.259.4...v0.260.1)

---
updated-dependencies:
- dependency-name: github.com/grafana/grafana-plugin-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner December 2, 2024 13:16
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Dec 2, 2024
@@ -79,7 +78,7 @@ func InterPolateMacros(queryString string, timeRange backend.TimeRange, pluginCo
for key, macro := range macros {
matches, err := getMatches(key, queryString)
if err != nil {
return queryString, errorsource.PluginError(err, false)
Copy link
Member

Choose a reason for hiding this comment

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

I changed this to return the error instead because it was returning an error with downstream. Not sure if it is the best way though.

Copy link
Member

Choose a reason for hiding this comment

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

I believe that should be correct, because we are setting errors in the getMatches and in macro.

@@ -79,7 +78,7 @@ func InterPolateMacros(queryString string, timeRange backend.TimeRange, pluginCo
for key, macro := range macros {
matches, err := getMatches(key, queryString)
if err != nil {
return queryString, errorsource.PluginError(err, false)
Copy link
Member

Choose a reason for hiding this comment

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

I believe that should be correct, because we are setting errors in the getMatches and in macro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants