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
python3Packages.wasmer: make cargoHash invariant to the Python version #110580
python3Packages.wasmer: make cargoHash invariant to the Python version #110580
Conversation
The package name used the Python version. Since the name is used in the Cargo vendor directory, the Cargo vendor hash depended on the Python version. Remove the Python version from the name.
I tried that initially but the cargoHash changed with different python versions. |
Could you elaborate what you mean? With this change, you can build |
@ofborg build python37Packages.wasmer python38Packages.wasmer python39Packages.wasmer |
This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 1 package marked as broken and skipped:
2 packages failed to build and are new build failures:
14 packages built:
|
When I put in a wrong hash and tried building it with python 3.7, 3.8 and 3.9 I would get a different hash each time even before I used the python version in the dep.s |
Putting in
The Python version should have no influence on vendoring. If it had, it would be a bug in our |
Thanks for fixing this. I am not sure actually why I did not do it in the first place like this. |
thank you; this is a far better solution than my original PR. 👌 |
This is a semi-automatic executed nixpkgs-review which is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch). Result of 1 package marked as broken and skipped:
2 packages failed to build and are new build failures:
14 packages built:
Not sure why this fails but since we are building a new package I am going to ignore it for now. |
Motivation for this change
The package name used the Python version. Since the name is used in
the Cargo vendor directory, the Cargo vendor hash depended on the
Python version. Remove the Python version from the name.
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)