Closed zcanann closed 5 years ago
@zcanann can you give me an example argument that causes a crash?
The feature is relatively simple: every --ignore PATTERN
argument gets added to this array:
filepath.Match
is used to actually filter paths:
The syntax is detailed here: https://godoc.org/path/filepath#Match
I'm very interested in reproducing the crashes (assuming they're actually crashes, not just invalid pattern syntax - but even then, maybe a better error message and better documentation could be added)
Ah! User error. I was passing -ignore
instead of --ignore
, and it was causing crazy errors.
I managed to figure out that you can pass the --ignore
command multiple times, ie butler push --ignore=*.pdb --ignore=*.dSYM
That part wasn't intuitive to me, I think a couple examples under https://itch.io/docs/butler/pushing.html would go a long way!
Apologies for filing an invalid issue, thanks for the help!
@zcanann I've added a bunch of documentation, including --ignore
examples, here: https://itch.io/docs/butler/pushing.html
Awesome! I appreciate you taking the time to do this.
@zcanann I've added a bunch of documentation, including
--ignore
examples, here: https://itch.io/docs/butler/pushing.html
FYI, the doc says to use eg --ignore '*.ext'
, with quotes, but (at least on Windows 10) that syntax doesn't work, I had to use instead --ignore *.ext
(no quotes)
@zcanann I've added a bunch of documentation, including
--ignore
examples, here: https://itch.io/docs/butler/pushing.htmlFYI, the doc says to use eg
--ignore '*.ext'
, with quotes, but (at least on Windows 10) that syntax doesn't work, I had to use instead--ignore *.ext
(no quotes)
@zcanann can you update the docs to mention that Windows shouldn't use quotes in the --ignore
command?
I haven't been able to successfully get this to ignore any files, and some
glob
patterns seem to cause crashes.Am I using the wrong syntax? What would be an example of ignoring both
.pdb
files and.dSYM
files?