-
Notifications
You must be signed in to change notification settings - Fork 12
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
ak sparse: keep all dirs appart addons #110
base: master
Are you sure you want to change the base?
Conversation
for odoo (src), we need to keep all the dirs and exclude ./addons/ the previous implementation was doing a `ls`. so it was not working if src was initialized with `git clone --filter:blob=null` because ls was returning nothing. This implementation asks git to list all the dirs expected in . also run a linter on the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, no, there is maybe a pb, i'll continue testing.
git["ls-tree"]["-d"]["--name-only"]["HEAD"] | ||
) | ||
|
||
# ls-files gives us all the files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean "ls-tree gives us all the directories" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I changed the command but not the comment
paths += directories | ||
paths.remove("addons") # remove ./addons/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What i found is :
- when creating a project with no odoo modules listed in spec (as we have with the current copier) this patch is perfectly ok, (using ak clone && ak sparse && ak build) the docky build will succeed
- but with a odoo module list (and an empty odoo/src) we will lack odoo/src/setup.py
Eventually we have to add someting like :
paths.append("setup.py")
for odoo (src), we need to keep all the dirs and exclude ./addons/ the previous implementation was doing a
ls
. so it was not working if src was initialized withgit clone --filter:blob=null
because ls was returning nothing.This implementation asks git to list all the dirs expected in .
also run a linter on the file