-
Notifications
You must be signed in to change notification settings - Fork 1k
Conversation
ensure no longer modifies the manifest file.
It may only modify the manifest when Line 164 in d89cec4
Though to be honest I'm not quite sure if that will ever result in the contents of manifest being altered (other than reformatting)? |
I was under the impression that the tooling treats the manifest as read-only, TOML formatting fixes notwithstanding. |
So I was the villain who changed this in #235 (review). But I'm not sure anymore why I left this in: https://github.com/golang/dep/blob/master/cmd/dep/ensure.go#L163
It does result in minor tweaks to the manifest, such as in TestIntegration/status/case1, rewriting the following: [[dependencies]]
name = "github.com/sdboyer/deptest"
version = "^0.8.0" to this [[dependencies]]
name = "github.com/sdboyer/deptest"
version = ">=0.8.0, <1.0.0" I think those lines are a bug from my PR, and should be removed. If @sdboyer confirms, I will make an issue and fix. |
What a pickle this is. |
Gosh, I apologize for all the confusion I've caused! 😞 I've spent more time today that I am willing to admit trying to remember when (if ever) dep should modify the manifest file now that it's a user managed file... I'm pretty sure that I've left things in a bad spot and will clean up my mess once I understand the desired behavior. |
@carolynvs oh no, it's no big deal - this should be an easy fix. Yes, @peterbourgon's right - the only command that can ever fully write out the manifest is The new spec in #277 contemplates a |
I opened #454 to fix this goof on my part, and then realized maybe wasn't a goof? I was just preserving the existing behavior, which isn't the same in the new command spec. I can't remove modifying the manifest during ensure as long as we still support |
@carolynvs hm, yeah, on further thought, i realize, yes - these really are two separate changes. We'd conflated a bunch of things together with respect to the move to TOML, but really, the issue is that we didn't lay out appropriate follow-up issues after the merge. Moving away from re-writing out the manifest is separate from moving to TOML from JSON. And, until we implement the changes to create a new So, I guess we put this on hold, and try to get to a new version of |
Incorporated by #480 |
A very tiny (but important) update to the help text:
ensure
no longer modifies the manifest file.