-
Notifications
You must be signed in to change notification settings - Fork 88
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
build: feature to download kernel into a tmp dir #601
build: feature to download kernel into a tmp dir #601
Conversation
abf7257
to
59861d8
Compare
59861d8
to
e654c02
Compare
I am very reluctant about this approach, since that would mean Hermit would be rebuilt from scratch on every build instead of doing incremental builds inside the target directory. Does removing the offending fields in |
Does Cargo allow the I haven't noticed anything being rebuilt excessively. However, in any case, the feature flag is optional. Specifying |
If nothing changes regarding Hermit, With this change, every time Modifying something outside I suggest you move the rust-analyzer config into a proper rust-analyzer config and use something external for everything else. |
But does Cargo keep the rust-analyzer doesn't support this type of configuration because one ought to use What is so bad about this feature flag? It's not enabled by default and it works. It provides a nice escape hatch for developers that need it. Without this feature flag one can't upgrade the Hermit kernel past |
Yes, it does.
No, it is totally safe, exactly how calling
While rust-analyzer will implicitly be affected by
As explained before, this is unsupported by Cargo and completely prevents incremental compilation in addition to not even working as is (it throws a compilation error on feature changes), since the temporary directories are deleted after running I am happy to help you find a solution to your problem, but this approach is not the way forward. A workaround that might work for you is specifying I am asking you to keep civil and constructive about this issue. |
By enabling this flag you ask the
hermit
build script to download the kernel into a temporary directory. This is useful when trying to avoid conflicts with Cargo configuration that may arise when the kernel is built in a sub-directory of another crate's Cargo configuration.Fixes #600