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

module found but does not contain package #21193

Closed
chrislinan opened this issue Jul 18, 2023 · 5 comments · Fixed by #21194
Closed

module found but does not contain package #21193

chrislinan opened this issue Jul 18, 2023 · 5 comments · Fixed by #21194
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. Monitor Monitor, Monitor Ingestion, Monitor Query needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team

Comments

@chrislinan
Copy link

Bug Report

  • import path of package in question, e.g. .../services/compute/mgmt/2018-06-01/compute
  • SDK version e.g. master, latest, 18.1.0
    • Specify the exact commit if possible; one way to get this is the REVISION
      column output by dep status "github.com/Azure/azure-sdk-for-go.
  • output of go version
    go version go1.20.6 darwin/amd64
  • What happened?
    run these command:
  1. go get -u
  2. go mod tidy
    and got this error message:
go: finding module for package github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server
go: finding module for package github.com/Azure/azure-sdk-for-go/sdk/azcore/fake
github.wdf.sap.corp/DBaaS/cloud-provider-exporter/pkg/cloud/azure/monitor imports
        github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor tested by
        github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor.test imports
        github.com/Azure/azure-sdk-for-go/sdk/azcore/fake: module github.com/Azure/azure-sdk-for-go/sdk/azcore@latest found (v1.7.0), but does not contain package github.com/Azure/azure-sdk-for-go/sdk/azcore/fake
github.wdf.sap.corp/DBaaS/cloud-provider-exporter/pkg/cloud/azure/monitor imports
        github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor tested by
        github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor.test imports
        github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor/fake imports
        github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server: module github.com/Azure/azure-sdk-for-go/sdk/azcore@latest found (v1.7.0), but does not contain package github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server
  • What did you expect or want to happen?
    go mod command runs well

  • How can we reproduce it?

  • Anything we should know about your environment.

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jul 18, 2023
@jhendrixMSFT jhendrixMSFT self-assigned this Jul 18, 2023
@jhendrixMSFT jhendrixMSFT added Monitor Monitor, Monitor Ingestion, Monitor Query Mgmt This issue is related to a management-plane library. and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Jul 18, 2023
@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jul 18, 2023
@jhendrixMSFT
Copy link
Member

This is fixed in version v0.10.1.

@chrislinan
Copy link
Author

chrislinan commented Oct 9, 2023

Hi @jhendrixMSFT, I meet the same error again, could you help with that? and the error shows:

❯ go mod tidy
go: finding module for package github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server
go: finding module for package github.com/Azure/azure-sdk-for-go/sdk/azcore/fake
github.wdf.sap.corp/DBaaS/cloud-provider-exporter/pkg/cloud/azure/monitor imports
	github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor tested by
	github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor.test imports
	github.com/Azure/azure-sdk-for-go/sdk/azcore/fake: module github.com/Azure/azure-sdk-for-go/sdk/azcore@latest found (v1.8.0), but does not contain package github.com/Azure/azure-sdk-for-go/sdk/azcore/fake
github.wdf.sap.corp/DBaaS/cloud-provider-exporter/pkg/cloud/azure/monitor imports
	github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor tested by
	github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor.test imports
	github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor/fake imports
	github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server: module github.com/Azure/azure-sdk-for-go/sdk/azcore@latest found (v1.8.0), but does not contain package github.com/Azure/azure-sdk-for-go/sdk/azcore/fake/server

@jhendrixMSFT
Copy link
Member

The armmonitor SDK requires the latest azcore beta v1.9.0-beta.1. What's the scenario where you're running into this?

@chrislinan
Copy link
Author

When I run these commands in my project, I get this error:

  1. go get -u
  2. go mod tidy
    Because I want to upgrade the package versions in my project.

@chrislinan
Copy link
Author

The version v1.8.0-beta.3 is OK, but it will be changed to 1.8.0 after go get -u.
Now, I manually changed the version to v1.9.0-beta.1, it works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. Monitor Monitor, Monitor Ingestion, Monitor Query needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants