When using register_script() there is a copy_all o...
# flyte-support
f
When using register_script() there is a copy_all option. I want more precise control over what is copied from the source directory. I couldn't find the right option for this. When I look at the flytekit code, I see that it uses:
Copy code
ignore = IgnoreGroup(source, [GitIgnore, DockerIgnore, StandardIgnore])
And looking at
StandardIgnore
, I see the comment:
Copy code
"""Retains the standard ignore functionality that previously existed. Could in theory
    by fed with custom ignore patterns from cli."""
but not sure how that from cli or from API (my preference) control is done.
t
not sure how we can specify patterns from cli. @high-accountant-32689 since you added this docstring, would like to know if this is possible.
t
are the docker/gitignore files sufficient?
if not, what ux are you looking for? how would an api look/work?
f
Not from CLI. I am using FlyteRemote and it should be trivial to add it as an option
I ended up monkey patching one of the classes to make it work for myself.
CC @thankful-minister-83577
t
mind opening a pr?
i’m sure as long as things are backwards compatible, we can merge in something similar
šŸ‘ 1
f
Hi @thankful-minister-83577 Would it be possible to have someone take a look at the contribution above?
t
yes
āœ… 1
f
Hi @thankful-minister-83577, I've updated the PR. Would it be possible to get this into the next release perhaps? Not sure when that would be.
t
tyty