Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Only write to the manifest during dep init #480

Merged
merged 2 commits into from
Apr 28, 2017

Conversation

carolynvs
Copy link
Collaborator

This closes #454. Now the only command that writes the manifest is dep init. This does leave dep remove and dep ensure --override in an inconsistent state until the new command set is implemented.

Now that the manifest is user managed, do not rewrite the entire file anymore
so as to preserve comments, etc. In the future commands may append/tweak
the manifest, but not completely rewrite it.
This is a stop-gap until the new command set is implemented. Remove now only
modifies the lock.
@sdboyer
Copy link
Member

sdboyer commented Apr 28, 2017

Excellent, thanks!

@sdboyer sdboyer merged commit 84595e3 into golang:master Apr 28, 2017
@carolynvs carolynvs deleted the manifest-is-user-edit-only branch April 28, 2017 17:31
ibrasho pushed a commit to ibrasho-forks/dep that referenced this pull request May 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ensure should never write to the manifest
3 participants