You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
Why does dep generate manifest.jsonandlock.json? I'm not a packaging expert, but as a user I'm a little confused because they seem to have very similar information.
It seems like lock.json contains all the information that manifest.json has, and then some. I can definitely see why we don't want to manually edit lock.json, but are we supposed to manually edit manifest.json? Is that why it was pulled out into its own file?
I skimmed through some of the Context documents in the readme, but I didn't see anything that explained this design. Unless I missed something, which totally could have happened.
Anyway, thank you!
The text was updated successfully, but these errors were encountered:
Hi - totally reasonable question. Briefly - manifest.json describes user intent, and lock.json describes computed outputs. There's flexibility in manifests that isn't present in locks - not super-obvious in yours, but still there, as the "branch": "master" constraint will match whatever revision master HAPPENS to be at right now, whereas the lock is nailed down to a specific revision.
This flexibility is important because it allows us to provide easy commands (e.g. dep ensure -update) that can manage an update process for you, within the constraints you specify, AND because it allows your project, when imported by someone else, to collaboratively specify the constraints for your own dependencies.
Hello.
Why does
dep
generatemanifest.json
andlock.json
? I'm not a packaging expert, but as a user I'm a little confused because they seem to have very similar information.manifest.json
lock.json
It seems like
lock.json
contains all the information thatmanifest.json
has, and then some. I can definitely see why we don't want to manually editlock.json
, but are we supposed to manually editmanifest.json
? Is that why it was pulled out into its own file?I skimmed through some of the Context documents in the readme, but I didn't see anything that explained this design. Unless I missed something, which totally could have happened.
Anyway, thank you!
The text was updated successfully, but these errors were encountered: