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

How to use resty with github.com/golang/dep/? #264

Closed
sunsingerus opened this issue Aug 27, 2019 · 6 comments
Closed

How to use resty with github.com/golang/dep/? #264

sunsingerus opened this issue Aug 27, 2019 · 6 comments
Assignees
Labels

Comments

@sunsingerus
Copy link

Tried to use resty with dep-enabled project and have the following issue.
Start point:
Gopkg.toml code:

[[constraint]]
  name = "github.com/go-resty/resty"
  version = "v2.0.0"

Run dep ensure and got:

Solving failure: No versions of github.com/go-resty/resty met constraints:
	v2.0.0: Could not introduce github.com/go-resty/resty@v2.0.0, as its subpackage github.com/go-resty/resty/v2 is missing. (Package is required by (root).)

Probably related to this issue

Can you, please, give an advice?

@sunsingerus sunsingerus changed the title How to user resty with github.com/golang/dep/? How to use resty with github.com/golang/dep/? Aug 27, 2019
@jeevatkm
Copy link
Member

jeevatkm commented Sep 7, 2019

@sunsingerus I have only tested with go mod not dep I might have to try it out. I'm sorry I don't have a suggestion or recommendation right now.

@jeevatkm jeevatkm self-assigned this Sep 7, 2019
@avorima
Copy link

avorima commented Oct 9, 2019

I would suggest moving everything in the master into a v2 subdirectory.

Nvm, I misunderstood this article. I still had some leftover imports that weren't changed during migration from v1.x to v2.

@jeevatkm
Copy link
Member

@avorima Thank you for the updates.

@sunsingerus Any updates?

@huzairuje
Copy link

huzairuje commented Nov 10, 2019

@jeevatkm i am using v2.1.0 and add to Gokpg.toml like this
[[constraint]] name = "github.com/go-resty/resty" version = "v2.1.0"
not having problem. with dep ensure
and i think this issue with version v2.1.0 is solved

@jeevatkm
Copy link
Member

Thank you @huzairuje for verifying and confirmation for v2.1.0.

@sherodewo
Copy link

@jeevatkm i am using v2.1.0 and add to Gokpg.toml like this
[[constraint]] name = "github.com/go-resty/resty" version = "v2.1.0"
not having problem. with dep ensure
and i think this issue with version v2.1.0 is solved

thankyou mang ujeee wkkw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants