Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odoo and some plugin directory are too big #94

Closed
FranzPoize opened this issue Jul 7, 2023 · 4 comments
Closed

Odoo and some plugin directory are too big #94

FranzPoize opened this issue Jul 7, 2023 · 4 comments

Comments

@FranzPoize
Copy link

FranzPoize commented Jul 7, 2023

The git tree of big project are very heavy and odoo git tree takes more than 1GB just for the .git directory.

It would be nice to be able to use the depth option of git clone (https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---depthltdepthgt) to avoid taking too much space.

Sparse does not resolve this issue because for some people (e.g. me in this case) I do not have enough space to download the repo in it's entirety.

Also an option to provide the possibility remove unused history from the git tree would be cool (see https://stackoverflow.com/a/34829535)

@hparfr
Copy link
Member

hparfr commented May 30, 2024

you have to run ak clone before ak build. it will init git folders with a partial clone.

https://github.com/akretion/ak/blob/master/ak/ak_clone.py#L62

@hparfr hparfr closed this as completed May 30, 2024
@kevinkhao
Copy link

would there be any disadvantage to make ak clone && ak build the default for ak build ?

@hparfr
Copy link
Member

hparfr commented May 30, 2024

back in the days, ak clone was based on new / experimental features of git;

I plan to merge these commands in a next version of ak

@rvalyi
Copy link
Member

rvalyi commented May 30, 2024

also please consider merging that one as at least it avoids copying these gigantic clones in every Docky image we have on our computer:

akretion/docky-odoo-template#91

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

No branches or pull requests

4 participants