These are chat archives for reactioncommerce/reaction
@zenweasel Do you think it would be a reasonable idea to cut the git history on
reaction init (clone a shallow repo with just the last commit of the master branch)?
I.e. something like:
git clone --depth=1 <repo-url>
The init command downloads something like... I think 50MB, just in the .git dir (and this is only going to grow). Of course the npm install would add a lot more, but those get cached and I don't think the git clone keeps any state. Caching actually isn't too complex to do in cloning (famous last words, haha) - it would be done with:
# On first 'reaction init' call the repo will be cached with $ git clone --mirror <repo-url> <cache-location-on-disk> # And then the command that needs to be executed on consecutive calls $ git clone --reference <cache-location-on-disk> <repo-url> <reaction-project-location-on-disk>
I thought the git history also gets in the docker image as well, but it is added in the .dockerignore file, so no issue there.
What do you think?
reaction-clirepo for it for sure