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
Support .cortexignore file to exclude files/directories from cortex project zip #800
Conversation
…s from cortex project zip
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.
@wingkwong thank you for your contribution, this is a great feature!
I made a few comments on the pull request, but nothing major, and most of them are up to you if you want to make the changes I mentioned. I also pushed a few very small changes to your branch.
I had two questions regarding the behavior of .cortexignore
:
-
As I was running the code, it seemed to me that it didn't work quite as I expected. I was in the
examples/tensorflow/iris-classifier
directory, I created.cortexignore
with*.md
, butREADME.md
was still included in the project files (I tested this by printing outprojectPaths
incli/cmd/deploy.go
). -
I wasn't able to determine by reading the code where a leading
!
is handled (I didn't see mention of it in filepath.Match).
Please let me know your thoughts!
… and revise test cases with require package
and I expect there is a README.md. The test case will be failed so it should be able to ignore it. |
Thanks for addressing the comments! For 1, I realized the root of the issue was that were were matching against the relative paths, but when For 2, I did see this logic, however it seems like this is just for parsing the patterns, but the It seemed like even according to Docker's documentation, they had to do some workarounds on top of Go's |
I like this approach. It looks more cleaner! |
Great! I'll send it to @vishalbollu for review, and then we'll merge it in |
@wingkwong I will merge it now, thank you for your contribution! |
closes #723
checklist:
make test
andmake lint