Is there a way to make the keep the vendor folder unchanged after adding a new dep and switching to another branch?

Written by
Link to Post

https://www.reddit.com/r/golang/comments/bywmo2/is_there_a_way_to_make_the_keep_the_vendor_folder/ by 

I am working on two PRs simultaneously. The project uses dep and Gopkg.toml. The vendor folder is in the gitignore so If I check out from one of my branches (in which I had just added a dep) to another, I lose that dep from the vendor folder when I get back to my previous branch.

Is there any way to prevent this from happening?

submitted by /u/fenster25
[link] [comments]

Article Tags:
· ·
Article Categories:
reddit

Leave a Reply