-
Notifications
You must be signed in to change notification settings - Fork 63
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
updated docs to show 'excludes' param #61
Conversation
@findkim Hey Kim, are we able to get this reviewed and merge if possible please!! - Thanks :) |
@AzySir documentation on Thanks |
@Spaider what was the parameter you added - could you share some code? |
Here's zip archive definition for AppEngine package with Flask App, written in Python:
This way it excludes only top-level |
Not sure on directories to be honest... Isn't pycache a folder? Maybe try these?
|
Please disregard |
@Spaider that's a fair use case. Unfortunately I don't have an answer for you - also I didn't design the functionality. I just created a documentation PR. I think you want to keep an eye on these (and maybe raise your own) - Here in issue #62 they are asking for a "**/.git" of set up. I've asked the question in issue #63 if it's possible to do a "__ pycache __/*" arrangement (for a temporary work around) - however I think this is a feature that might need to be requested. If you do request it - can you please tag me in it :) |
You can see some examples in the test. Glob/wildcards are not supported. I used to have full regex support when i first added excludes but was asked to change it to what it is today. It just uses relative paths. So you would have to list all of the sub dirs one at a time. https://github.com/hashicorp/terraform-provider-archive/blob/master/archive/zip_archiver_test.go |
It just checks if relname matches elements in the excludes list.
|
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Updated Documents to show the "excludes" parameter exists