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
coq.src can't be built on darwin (UTF-8 file names?) #176225
Comments
The issue with fetching the tarball on macOS was discovered in #138274, and we believe this is a fetchzip bug on macOS. However, until now, it wasn't an actual issue for users because macOS users would use the fixed-output derivation downloaded on Linux and cached by Hydras (see this comment). Now, it seems like Hydras caches failures as well (it's a new thing, isn't it? Or we were just lucky previously that the Linux fetching would have happened before the macOS one?) and that because of this, a failure to download the source on Darwin is affecting everyone! I don't really have any solution to propose except:
Even if Coq was modified to not include these file names in its source archive anymore, this wouldn't resolve the issue with already released versions. One last workaround idea to the fetchzip issue would be to make the fixed-output derivation not the direct result of fetching the tarball, but something that would fetch it and fix the divergent paths (e.g., by removing the corresponding tests). But I wouldn't even know how to implement this. |
I've seen this in a couple other packages already. It's... not nice but fortunately not a very common problem (perhaps partly due to some linux getting it faster or on a retry). |
Do you think |
Unpacking is locale-dependent:
|
My guess the mismatch happens because macos supports UTF-8 locales as is (and mossibly musl as well?). While I think we have 2 routes:
|
Confirmed failure on
|
WDYT of proposed #176253 fix? Once it's in we can fix |
Thanks a lot for digging into and figuring out the cause of this issue! I find your proposed fix as the best (most principled) solution, even if it will require some work to fix past fix-output derivations. |
Describe the bug
Hydra fails to fetch
coq.src
when ran on darwin, blocks even linux builds ascoq.src
is a fixed-output derivation: https://hydra.nixos.org/build/179179093/nixlog/1 (linux failure: https://hydra.nixos.org/build/179240004. )Steps To Reproduce
I think it's the following suspicious UTF-8 path:
Expected behavior
darwin and linux should both be able to fetch the same tarball.
Notify maintainers
@roconnor @thoughtpolice @vbgl @Zimmi48
Metadata
The text was updated successfully, but these errors were encountered: