Skip to content

Bump github.com/grafana/grafana-plugin-sdk-go from 0.158.0 to 0.161.0 #37

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 8, 2023

Bumps github.com/grafana/grafana-plugin-sdk-go from 0.158.0 to 0.161.0.

Release notes

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

v0.161.0

What's Changed

Full Changelog: grafana/grafana-plugin-sdk-go@v0.160.0...v0.161.0

Breaking change

v0.150.0 introduced Forward HTTP headers by default. This release removes the automatic forwarding of HTTP headers since it caused problems for several plugins. This is a possible breaking change given that this was introduced rather recently.

In case your plugin is dependent on the automatic forwarding of HTTP headers you would need to set the httpclient.Options.ForwardHTTPHeaders to true, like as can be seen in the example below:

func NewDatasource(settings backend.DataSourceInstanceSettings) (instancemgmt.Instance, error) {
	opts, err := settings.HTTPClientOptions()
	if err != nil {
		return nil, fmt.Errorf("http client options: %w", err)
	}
	opts.ForwardHTTPHeaders = true
	cl, err := httpclient.New(opts)
	...
}

Expect the datasource-http-backend example and Add authentication for data source plugins documentation to be updated soon.

Compatibility

gorelease -base v0.160.0 -version v0.161.0
# github.com/grafana/grafana-plugin-sdk-go/backend/httpclient
## compatible changes
Options.ForwardHTTPHeaders: added

summary

v0.161.0 is a valid semantic version for this release.

v0.160.0

What's Changed

New Contributors

Full Changelog: grafana/grafana-plugin-sdk-go@v0.159.0...v0.160.0

... (truncated)

Commits

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 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)

Bumps [github.com/grafana/grafana-plugin-sdk-go](https://github.com/grafana/grafana-plugin-sdk-go) from 0.158.0 to 0.161.0.
- [Release notes](https://github.com/grafana/grafana-plugin-sdk-go/releases)
- [Commits](grafana/grafana-plugin-sdk-go@v0.158.0...v0.161.0)

---
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] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels May 8, 2023
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 29, 2023

Superseded by #38.

@dependabot dependabot bot closed this May 29, 2023
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/grafana/grafana-plugin-sdk-go-0.161.0 branch May 29, 2023 21:00
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.

0 participants