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

dep ensure -add .com/aws/aws-xray-sdk-go does not working #112

Closed
k-kurikuri opened this issue May 31, 2019 · 2 comments
Closed

dep ensure -add .com/aws/aws-xray-sdk-go does not working #112

k-kurikuri opened this issue May 31, 2019 · 2 comments

Comments

@k-kurikuri
Copy link

Hi. The dep command generated an error when following the README.

$ dep ensure -add github.com/aws/aws-xray-sdk-go
Fetching sources...

Solving failure: No versions of github.com/aws/aws-xray-sdk-go met constraints:
    v0.9.4: Could not introduce github.com/aws/aws-xray-sdk-go@v0.9.4, as its subpackage github.com/aws/aws-xray-sdk-go does not contain usable Go code (*build.NoGoError)..

This seems to happen because there is no .go under the root package.
The package containing .go was successful.

$ dep ensure-add github.com/aws/aws-xray-sdk-go/xray

aws-xray-sdk will probably work with this command.

@luluzhao
Copy link
Contributor

@k-kurikuri , thank you for contacting us regarding your issue. It seems like this is an issue with dep and currently there is no fix for it. Here are two solutions to fix this. First one like you mentioned above, install the individual packages using dep ensure -add. Second one is inside your Gopkg.toml file and then write down the dependency you want to install like below

[[constraint]]
   name = "github.com/aws/aws-xray-sdk-go"
   version = "v1.0.0-rc.11"

After finishing this, run dep ensure to install the dependency.

Let me know if you have any questions.

@k-kurikuri
Copy link
Author

@luluzhao , Thank you for your reply. It solved by adding v1.0.0-rc.11 to Gopkg.toml. I will implement using v1.0.0-rc version.

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

2 participants