-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Replace codespell with typos #7248
Conversation
@aarongable Am I doing it right? |
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.
Thanks, this is definitely on the right track!
When I build this docker image and then run typos, I get the following error:
typos: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by typos)
typos: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by typos)
typos: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by typos)
Looks like the base image we're copying the typos binary into doesn't have the right version of libc. If you fix that, this change will LGTM
Added static linking! |
I have a potential solution for this. See my changes to the Dockerfile and a new file used by the Dockerfile called build-rust-deps.sh. What's happening here is the chosen rust container for the docker multipart build,
A newer GLIBC can run binaries requiring an older GLIBC (to an extent), but not the other way around which is this case. Even with static linking I think there would be a problem. So what can we do? Can we instruct the rust compiler to target a specific version of GLIBC? No, we cannot. Alright, so let's use an Ubuntu Focal official rust container. Sorry, not currently possible. All hope is lost right? I mean, yeah probably, but not for this issue! We can use an older Debian Bullseye container that contains a suitable GLIBC!
This solution works on both x86_64 and Apple Silicon M1/M2/M3 Macbooks.
|
Thanks @pgporada, I've confirmed, as you state above, that this works on my Mac equipped with Apple Silicon. |
Implemented 🍏 |
I suggest taking the rest of the changes my branch has for the Dockerfile and the new build-rust-deps.sh script. |
@pgporada Could you open a new PR from your branch? I get Pull request creation failed. Validation failed: must be a collaborator |
Sure. I would have just copied and pasted the files. |
From #7241