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

Feature Request: preserve vendor/.git #460

Closed
dt opened this issue Apr 25, 2017 · 2 comments
Closed

Feature Request: preserve vendor/.git #460

dt opened this issue Apr 25, 2017 · 2 comments

Comments

@dt
Copy link

dt commented Apr 25, 2017

As discussed on #vendor gopherslack, some workflows involve storing vendor in its own git repo and then embedding it via a submodule -- this can be nice for large vendor dirs with high churn, where that history is uninteresting as it is derivable form the lock file.

It would be nice if dep ensured that when it manipulated or otherwise (re-)generated a vendor directory, it preserved the previous .git file or directory if there was one, similar to the functionality in Masterminds/glide#699.

@darkowlzz
Copy link
Collaborator

Has anybody started working on this? I would be very happy to work on this and get familiar with the code base.

@sdboyer
Copy link
Member

sdboyer commented Apr 25, 2017

@darkowlzz great! nope, no one's claimed it, and I'd say this would be a great place to start for contributions - the change here should be reasonably straightforward. SafeWriter.Write() is likely where the changes will eventually need to be. I think you should be able to work backwards from there, but feel free to ask questions here or in slack!

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

No branches or pull requests

3 participants