6

Replace deprecated Azure SDK lib · Issue #1250 · percona/pmm · GitHub

 1 year ago
source link: https://github.com/percona/pmm/issues/1250
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Contributor

artemgavrilov commented Sep 23, 2022

Description

We have this linter warning:

SA1019: "github.com/Azure/azure-sdk-for-go/services/resourcegraph/mgmt/2019-04-01/resourcegraph" is deprecated: Please note, this package has been deprecated. A replacement package is available [github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcegraph/armresourcegraph](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcegraph/armresourcegraph). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details. (staticcheck)

So we should replace deprecated package that is used in our codebase. Here is where we import that package:

Suggested solution

Follow the migration guide provided by linter warning

Additional context

https://aka.ms/azsdk/golang/t2/migration

Code of Conduct

  • I agree to follow this project's Code of Conduct

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK