-
Notifications
You must be signed in to change notification settings - Fork 326
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
sysfs/fixtures filenames are too long #57
Comments
Workaround:
|
Still having issues after using the workaround:
|
65 chars: Of course we could shorten the code used to replace colon from The chmod problem I have no idea about. Perhaps we should consider going back to tar. My approach may be too brittle on Windows. What are people using on Windows these days, anyway? Cygwin? The Linux subsystem for Windows? |
Let's just use a comma inst of |
I think the length issue can be easily solved if you're on Windows 10. See my comment here: #57 (comment) I tried using glide and dep and they both had the same issue with |
@grobie If a comma works for you guys, it should be cool :) However, I am not sure whether |
I'd be afraid to use a dash as replacement separator, it's too common in filenames. |
How about two underscores: |
That's still making filenames very long. I don't think it's reasonable to expect everyone checking out the repository on Windows to have Windows 10 and able to change their filesystem configuration. |
I meant a literal comma |
Ah, I see. I think a comma should be fine as I do have files with commas in them on the filesystem and they seem to work fine. |
Thanks so much for reporting and being so responsive @F21. I'll put something together, given I don't have access to a Windows node, would you be able to test another fix for us? |
Every single character is a liability going forward. There are files in /sys that already contain dashes, commas, at signs, underscores, periods, and parentheses. Are we sure that no such file will turn up in the fixtures directory at some point? |
If you know there are commas already, that's not an option. @ideaship so let's revert and be safe and go with the tarball approach? |
Also, another liability is that the repo might not be checked out to In my case, glide or dep checks them out to |
@grobie Happy to test your fix 😄 once it's pushed. |
I'd say let's go back to the tar ball. It seems to be pretty much the only way to be safe. |
Oh, and @F21: I'd still be interested to learn what you are using as an environment on Windows (cygwin, Linux subsystem for Windows, ...). |
@ideaship I am mostly using Git Bash and occasionally just the standard shell ( |
I just ran |
Thank you for taking the time confirm!
…On Tue, Jun 20, 2017, 09:51 Francis Chuang ***@***.***> wrote:
@ideaship <https://github.com/ideaship> @grobie
<https://github.com/grobie> Thanks for pushing the fix! I can confirm it
works correctly! 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAANaDNRyqVQrycul6Mb49VpOyXrsKd6ks5sF3oDgaJpZM4N-91g>
.
|
thank you so much!!!it worked!! |
The generated pathnames are too long for some filenames, including NTFS in its default configuration. We've considered using other separators, but deemed shorter ones to easy to break something. This reverts commit b9955ae, reversing changes made to a3bfc74. Fixes prometheus#57.
Make TCP/UDP socket table readers public
Trying to install
github.com\prometheus\client_golang\prometheus
using glide which hasprocfs
as a dependency.The install fails on windows because
sysfs/fixtures
contains subfolders with long filenames:ref #55 #56
The text was updated successfully, but these errors were encountered: