-
Notifications
You must be signed in to change notification settings - Fork 1k
ensure: handle if dep is unused? #36
Comments
This SGTM |
i'm glad you like that behavior, b/c it's the simplest way of making this work :) the only thing about it is, if you ensure w/out it being imported it's not in the lock OR vendor. or anywhere in your GOPATH. so it doesn't actually help with goimports/code completion. there's one other easy possibility i've thought of, here - we could inject the named package with a idk which of these causes more WTF. |
so basically I'm going to write a test ensuring (hahaha pun) we never break this behavior, then I will close this |
except I kinda want the behavior @sdboyer mentioned as:
|
so actually I think it should possibly behave like this:
or something like that |
cool! @jessfraz i was imagining this, a small tweak on what you had:
|
Closing this out, as I think the new direction defined in #213 obviates it. |
I kinda like the behavior now but we should decide on it.
if you run dep ensure now with a dep you are not currently using it will add it to the manifest but not the lock.
After you've added your code using the dep, you can rerun dep ensure and it will be in the lock as well.
I personally like this because i like to checkout packages locally before starting coding for goimports and code completion but we should decide if this is the behavior everyone wants.
The text was updated successfully, but these errors were encountered: