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

How can constraints be added automatically for new imported packages? #1666

Closed
CameronGo opened this issue Feb 9, 2018 · 1 comment
Closed

Comments

@CameronGo
Copy link

When I run dep init on a project for the first time, it appears to add all of the direct dependencies to my manifest file with constraints defined. As the project changes; however, and new packages are added to the imports, running dep ensure -update doesn't seem to add these new direct dependencies to the manifest file with constraints. They obviously do get added to the lock file. I also can obviously run dep ensure -add and explicitly add new direct dependencies, but it seems to me that if dep automatically populated the original manifest with imported packages, that there should be a way to effectively "refresh" that.

I haven't run / tried dep init b/c I'm under the impression it is intended only for the first time execution.

Is there a way to do this, or am I missing something about the intended use here?

@carolynvs
Copy link
Collaborator

We have an feature request in #1670 to fix this usability gap. So no, we don't support it yet but it's a great suggestion!

I am going to close this issue in favor of that one. Please comment there if you have suggestions for the feature.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants