With included .git folder the download is 59,7 MiB. Is this intentional?

Comments

sylvain lecoy’s picture

> ping

webchick’s picture

Status: Active » Postponed (maintainer needs more info)
mahfiaz’s picture

Status: Postponed (maintainer needs more info) » Active

Thanks for taking a look.
I suppose it's packaging script. Take a look at the download sizes at https://drupal.org/project/spark
7.x release is 5.7 MB, 8.x release is over 60 MB. If you downloaded these files you would see that the difference is the .git folder, which is 60 MB (unarchived).

webchick’s picture

Title: 8.x releases contain .git folder » 8.x release of Spark distribution contains .git folder
Project: Spark » Drupal.org infrastructure
Version: 8.x-1.x-dev »
Component: Miscellaneous » Packaging

Hm. :( I'm not sure why that would be. :(

Moving to the infrastructure queue for some hopeful insight.

webchick’s picture

Project: Drupal.org infrastructure » Spark
Version: » 8.x-1.x-dev
Component: Packaging » Code
Status: Active » Closed (works as designed)

Oh, wait. Duh. I figured this out on my own.

So the reason this is happening is because there are no core unstable/alpha releases that I can peg the distribution to; I need to peg it against a specific git commit hash. This of course will grab core from Git, rather than a tarball, which means the .git folder for core will be included.

So basically, this is "by design" until Drupal 8 core tagged releases start coming out.

mahfiaz’s picture

Okay, thanks for the explanation, it makes sense.

moshe weitzman’s picture

I think drush is supposed to remove the .git after the clone. Fixed in next version of drush. No idea when d.o. will upgrade. See #1875510: Drush Make does not remove .git directories for core and libraries

mahfiaz’s picture

Thats nice :)