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

Can't install v2.0.1 #184

Closed
kyle-johnson opened this issue Jun 6, 2019 · 6 comments
Closed

Can't install v2.0.1 #184

kyle-johnson opened this issue Jun 6, 2019 · 6 comments

Comments

@kyle-johnson
Copy link

go.mod needs an update?

It starts with module github.com/nicksnyder/go-i18n/v2 but the v2 directory no longer exists

@nicksnyder
Copy link
Owner

This shouldn’t be a problem. What version of Go are you using? Can you share how you are trying to add go-i18n as a dependency to your project? What error are you seeing?

@khalidumarr
Copy link

Screen Shot 2019-06-10 at 1 05 30 PM

I'm using glide to install it and facing this

- package: github.com/nicksnyder/go-i18n
  version: ~2.0.0-beta.3

@nicksnyder
Copy link
Owner

@khalidumarr It looks like Glide doesn’t support libraries that use Go modules: Masterminds/glide#1017. The last commit to Glide was in September and it’s readme recommends switching to dep so I don’t think Glide is being maintained. Dep also doesn’t support modules yet and there doesn’t appear to be an active maintainer so I would try to switch to Go modules if I were you: golang/dep#2139

You should be able to upgrade to 2.0.0 without a problem for now though because I moved the code around in 2.0.1.

I might be able to re-add the v2 subdirectory to maintain comparability with the other dependency management systems.

@khalidumarr
Copy link

@nicksnyder I'll definitely move to go modules in near future. But i think it's better to keep v2 subdirectory for compatibility.

@kyle-johnson
Copy link
Author

Probably user error on my part. Might've been oddity under go 1.11, but the disappeared for me when switching to 1.12 (but we did some other updates at the same time sooo).

It certainly works when I just create a new go project and go mod init ... + go get github.com/nicksnyder/go-i18n/v2

@nicksnyder
Copy link
Owner

@kahlidumarr I restored the v2 subdirectory so you should be able to update to 2.0.2

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

No branches or pull requests

3 participants