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

Remove go.mod, stick to +incompatible versions for v3.x #346

Merged
merged 1 commit into from
Aug 27, 2018

Conversation

VojtechVitek
Copy link
Contributor

@VojtechVitek VojtechVitek commented Aug 27, 2018

It's better to live without go.mod file, since chi was already v3.x before the Go modules support. See discussion at #302.

Assuming we release v3.3.3 tag:

Current master:

$ GO111MODULE=on go get github.com/go-chi/[email protected]
go: finding github.com/go-chi/chi v0.0.0-20180826211853-0dd0f5c3134

(adds github.com/go-chi/chi v0.0.0-20180826211853-0dd0f5c3134f into go.mod file)

With this PR merged:

$ GO111MODULE=on go get github.com/go-chi/[email protected]
go: finding github.com/go-chi/chi v3.3.3

(adds github.com/go-chi/chi v3.3.3+incompatible into go.mod file)

Summary

v3.3.3+incompatible looks much more cleaner than release chi as "v1" Go module. Imho, it'd be weird to release v1 module, since we're tagging with v3 version already.

If we ever release v4, we can add go.mod file with /v4 import path suffix.

@pkieltyka pkieltyka merged commit b5294d1 into go-chi:master Aug 27, 2018
@VojtechVitek VojtechVitek mentioned this pull request Aug 27, 2018
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