-
Notifications
You must be signed in to change notification settings - Fork 80
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
Dependency being constantly rebuilt due to 'env_metadata' being set to 'true' #112
Comments
I believe this is the intended behaviour. The general assumption of Why do you change your environment, what's the use-case of this? |
It's one of the main goals of Nix/NixOS, instead of "polluting" your own environment with the dependencies of every project you ever done, you create temporary environments adapted to each project. Those environments can also be written down (like a Dockerfile I guess) and are reproducible. Before #105 I had to go in such an environment (with pkg-config, openssl, etc.) only once => for the first build, and then I could leave it and use But now, if I leave this environment, the dependencies are getting rebuilt and so the build fails. If I also add a new package to the environment, it will rebuild every single dependency using pkg-config-rs, (on an amethyst project, ~10 dependencies + the one that depends on them, which is ~50 dependencies). It is really annoying 😞 I can't use my IDE properly anymore. Building these environments also became very hard as any edit to the PKG_CONFIG_PATH will trigger tons of rebuilds. If you don't have any workaround, I will be forced to use a fork to revert this PR |
I don't think such a use-case is generally supported by I think you want to create an issue for That this worked before for you was a bug, and the problem you're running into now is caused by the general design of |
Well I'll open an issue. The thing is, this is the kind of issue that will probably never get resolved, I guess I'll have to fork this repo. |
You'll probably sooner or later run into the same problem with other crates linking to system libraries and not using For |
Hey @Litarvan, i'm running into this issue on NixOS as well, was there a workaround, or another issue i can subscribe to to track progress of this bug? Thanks! |
I didn't open an issue since I knew it would never be resolved, I did a fork with the fix here : https://github.com/Litarvan/pkg-config-rs |
Ah! Understandable. Thanks for pointing to your workaround though 👍 |
There's a bug rust-lang/pkg-config-rs#112 where on NixOS because of the environment changing (env variables? something else?) the `openssl-sys` package keeps getting rebuilt. This is slow. Anyway, our friend @Litarvan made a fork of `pkg-config` which has a workaround, so for now let's just depend on that. Seems pretty harmless.
Hello, I'm having an issue with openssl-sys due to the changes made by #105 in pkg-config-rs
@sfackler led me here after I posted an issue on rust-openssl, so I'll repost it here :
Is there any workaround ?
Thanks by advance
The text was updated successfully, but these errors were encountered: