-
Notifications
You must be signed in to change notification settings - Fork 347
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
When using pre-build commands cross build hangs under Windows #1303
Comments
I doubt this is a cross issue. Does running
work? if it doesn't then you'll need to figure out what's wrong with |
basically, copy the command cross is running, be careful with copying |
I did a bit of investigation and found this: containers/podman#17628 The moment pre-build commands are added to the Cross.toml the workspace folder is used as the "context directory" and Windows podman copies the full context directory to its environment. In a standard rust project the rust "target" folder is directly in the workspace folder and thus inside that "context directory". In my case a "fresh" In addition in my case the workspace folder holds an additional ~15 GB of assets which creates the impression that So I would consider this an issue with cross, as a even a small rust project with dependencies produces a target folder in the order of several GB which slow down the cross build process significantly to the point where it looks as if it never makes any progress. Those build artifacts should not be copied into the podman image. Additionally it would be great if Cross.toml would allow configuration to "ignore" certain subdirectories from the "context directory". |
Use cross installed from main, we switched to build with buildx (and podman should also support it if installed). Buildx doesn't needlessly copy all files and folders. you can also add a |
Thank you for the help 🙏 |
Why not make a new release?
It is good to have a workaround. But it is not an expected behavior, therefore could someone reopen this issue until a fixed version is released, please? |
I don't think this warrants reopening, the issue is expected behaviour, just happens to work better in newer code base. I want to make a new release, but I don't feel like i's ready yet |
By "expected" I mean expected by users. As a user, I can definitely say that it was not expected. Otherwise, the reporter would not have created this issue, and I wouldn't have been searching for it.
As you wish. But I should warn that the decision to close unfixed issues leads to duplicate issues (not everyone searches for a similar issue among the closed ones before creating a new one), which means wasting time for both reporters and maintainers. |
But the issue is fixed/made irrelevant, just not released as a version, but I understand what you mean and appreciate the direction @AndreyMZ ! One thing with that though, we have a checkmark in the issue template that basically asks users to look through all issues, so hopefully we can mitigate some of that. We have other completed issues that are only solved on coming 0.3.0 release, my only known praxis of how to handle issues is to close them when a fix is not possible or made available on the default (or backported) branch. But maybe that is bad maintence? I for one don't mind doing it that way anyway, but always open for improvement! |
Checklist
Describe your issue
When I am adding a
Cross.toml
file with pre-build commands the build hands indefinitely. The identical setup is working when doing the build from Linux, so this seems to be a Windows-specific problem.What target(s) are you cross-compiling for?
aarch64-unknown-linux-gnu
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
0.2.5
Example
My
Cross.toml
file:Additional information / notes
The console output:
The text was updated successfully, but these errors were encountered: