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

Gracefully handle gomod package import that has changed #2627

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

jurre
Copy link
Member

@jurre jurre commented Oct 12, 2020

When a module exists, but it (no longer) defines the package of a given
name, we get an error like such:

go: finding module for package github.com/googleapis/gnostic/OpenAPIv2
github.com/dependabot/vgotest imports
	github.com/googleapis/gnostic/OpenAPIv2: module github.com/googleapis/gnostic@latest found (v0.5.1), but does not contain package github.com/googleapis/gnostic/OpenAPIv2

In this case, we should not treat that as a failed update, but rather as
a DependencyFileNotResolvable.

When a module exists, but it (no longer) defines the package of a given
name, we get an error like such:

```
go: finding module for package github.com/googleapis/gnostic/OpenAPIv2
github.com/dependabot/vgotest imports
	github.com/googleapis/gnostic/OpenAPIv2: module github.com/googleapis/gnostic@latest found (v0.5.1), but does not contain package github.com/googleapis/gnostic/OpenAPIv2
```

In this case, we should not treat that as a failed update, but rather as
a DependencyFileNotResolvable.
@jurre jurre requested a review from a team as a code owner October 12, 2020 13:04
Copy link
Contributor

@feelepxyz feelepxyz left a comment

Choose a reason for hiding this comment

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

💯

@jurre jurre merged commit 8a2143e into main Oct 12, 2020
@jurre jurre deleted the jurre/handle-renamed-go-mod-import branch October 12, 2020 19:50
@mctofu mctofu mentioned this pull request Mar 8, 2021
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