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 constraint example is wrong in the README #8

Closed
srowles opened this issue Jul 2, 2020 · 1 comment
Closed

dep constraint example is wrong in the README #8

srowles opened this issue Jul 2, 2020 · 1 comment

Comments

@srowles
Copy link
Contributor

srowles commented Jul 2, 2020

You have to constrain at the root package level

e.g.

[[constraint]]
  name = "github.com/IBM/vpc-go-sdk"
  version = "0.0.1"

I'd recommend suggesting people use:

dep ensure -add github.com/IBM/vpc-go-sdk/vpcv1
@srowles
Copy link
Contributor Author

srowles commented Jul 6, 2020

PR: #9

fixes the dep example, and also adjusts the example code to be more go idiomatic with inline struct creation, and demonstrates the use of the StringPtr method from the core sdk.

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