-
Notifications
You must be signed in to change notification settings - Fork 1k
Need clarity about if Gopkg.lock really locks down depenendencies #1300
Comments
would the changes introduced in #1256 be adequate for your purposes? doesn't solve the docs problem, but it may at least check the box. |
I think #1256 will work for now. BTW, this is to ensure that audits of our committed Gopkg.lock file accurately reflect what is actually built in CI. |
I think that the option However, I agree that this should be very well documented: it is a very important security concern to make sure CI will not go and change the lock file. I am a bit unhappy that it's not the default behavior, because surely some people will miss it and get non-reproducible builds, but I see why it's not, I think. |
I just saw this proposal for
|
yeah sorry, I didn't think to create a venue for feedback beyond comments directly on the doc. I can/should probably put it on the pm mailing list, too. I'm fine with making it another dep subcommand, rather than being a standalone tool. there isn't a way of doing quite exactly the same thing with ensure flags; doing so would be overloading ensure too much, as the purpose of ensure is to rely on these checks as a prerequisite to doing its work, not just do the checks themselves. (that one weird flag combo was always kind of a hack - some kind of checker like this has always been my intent) |
What version of
dep
are you using (dep version
)?0.3.2 stable via brew
What
dep
command did you run?dep ensure
What did you expect to see?
I expect
dep ensure
to always abide by versions called out in any pre-existing "Godep.lock" file, or at least to have a flag option that will ensure that the Godep.lock is fully respected and not changed bydep ensure
. In this case,dep
should fail with a non-zero error code instead of trying to update any dependencies to satisfy constraints.What did you see instead?
It was not clear to me from the documentation what the behavior of
dep
is here.The text was updated successfully, but these errors were encountered: