-
Notifications
You must be signed in to change notification settings - Fork 363
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
Fix invalid supportbundle temporary name #1150
Conversation
/test-all |
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.
@weiqiangt I feel like I am missing something. When I look at the documentation for afero.TempFile
and at the implementation (https://github.com/spf13/afero/blob/64002605e424363ac9aeb8c945c6dbfc06bd0d62/ioutil.go#L178), it seems that it should work. Could you explain where the issue comes from?
Also in your commit message, you mean "asterisk", not "asteroid".
Yeah, you're right. But the afero we're using in Antrea is 1.2.2 which has the following implementation.
Now, we have two options to solve this issue, upgrade or edit like this PR. I would prefer the prior one. Yes, |
The `TempFile` does not accept wildcard and thus the filename will contains asterisk. Windows does not allow filename to have asterisk.
89a94f1
to
18735dd
Compare
I also like the upgrade option |
Thanks for your PR. The following commands are available:
|
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.
LGTM
/test-all |
The `TempFile` does not accept wildcard and thus the filename will contains asterisk. Windows does not allow filename to have asterisk. Fixes antrea-io#1148.
The `TempFile` does not accept wildcard and thus the filename will contains asterisk. Windows does not allow filename to have asterisk. Fixes #1148.
The `TempFile` does not accept wildcard and thus the filename will contains asterisk. Windows does not allow filename to have asterisk. Fixes antrea-io#1148.
In afero 1.2.2, the
TempFile
does not accept wildcard and thus the filename willcontain an asterisk. Windows does not allow filename to have an asterisk.
Fixes #1148.