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

chore: add /v2 suffix to module import path #311

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

dnwe
Copy link
Contributor

@dnwe dnwe commented Sep 13, 2021

Since #253 added a go.mod for
toxiproxy, the v2.x.x release from v2.1.5 can no longer be referred to
as an +incompatible module dependency and is required to have a /v2
suffix on the module path.

server response: not found: github.com/Shopify/toxiproxy@v2.1.5+incompatible:
  invalid version: +incompatible suffix not allowed:
    module contains a go.mod file, so semantic import versioning is required

(see Go Modules have a v2+ Problem for further discussion)

Fixes #310

Since Shopify#253 added a `go.mod` for
toxiproxy, the v2.x.x release from v2.1.5 can no longer be referred to
as an `+incompatible` module dependency and is required to have a `/v2`
suffix on the module path.

```
server response: not found: github.com/Shopify/toxiproxy@v2.1.5+incompatible:
  invalid version: +incompatible suffix not allowed:
    module contains a go.mod file, so semantic import versioning is required
```
(see [Go Modules have a v2+ Problem](https://donatstudios.com/Go-v2-Modules) for further discussion)

Fixes Shopify#310
@miry miry merged commit 9447d38 into Shopify:master Sep 14, 2021
@miry
Copy link
Contributor

miry commented Sep 14, 2021

Thank you @dnwe

dnwe added a commit to IBM/sarama that referenced this pull request Sep 14, 2021
Also use github.com/Shopify/toxiproxy/v2@HEAD for go.mod to pickup
Shopify/toxiproxy#311
dnwe added a commit to IBM/sarama that referenced this pull request Sep 14, 2021
Also use github.com/Shopify/toxiproxy/v2@HEAD for go.mod to pickup
Shopify/toxiproxy#311
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.

toxiproxy v2.1.5 can't be used as a client module without /v2 suffix
2 participants