-
Notifications
You must be signed in to change notification settings - Fork 1k
Add -no-examples flag to init #472
Comments
Happy to pick this up! |
Just pulled in the master branch, getting an issue with type semverConstraint struct {
c semver.Constraint
}
|
awesome! 🎉
seems like your vendor isn't populated, for some reason - that arises with semver 1.x/master branch, but dep's Gopkg.toml constrains it to the 2.x branch. |
@sdboyer I'm using the constraint "2.x" in the Gopkg.toml, but the lock's showing "v1.2.3". Does UPDATE: Doesn't look like there is a version 2? https://github.com/Masterminds/semver/tags |
@EwanValentine it does, as long as it also appears in the import set. Which...very interestingly...it appears we've recently eliminated, so the constraint is no longer being applied. This is not an uncommon case, but not warning about it makes for a big gotcha; we have #302 opened to address it. |
So...to that end, I'm gonna push a quick change to dep's Gopkg.toml 😄 |
Ahaaa gotcha! Cool, I'll take another look shortly :) |
OK, master is updated. You shouldn't need to run a |
Awesome, thank you! That seems to have fixed that issue. I'm getting another issue with the
|
This is strange things - all of this is code that compiles now. Oh, wait - are you working on a fork in |
@sdboyer Spot on! Fixed it now, I'm just working in github.com/golang/dep but setting the origin to ewanvalentine/dep. Thanks again for your help! |
Per the spec (#277) and as a follow-up to #462, add a
-no-examples
flag todep init
that disables injecting commented examples/docs into the createdGopkg.toml
.The text was updated successfully, but these errors were encountered: