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
sourcetrail: fix hash for SourceTrailPythonIndexer #107533
Conversation
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.
Could you add a bit of context about where the original hash came from in the commit message?
Something along the lines of:
The sha256 for the python indexer wasn't updated along with the git
revision. The current hash is for commit 0d1246b.
❯ nix run nixpkgs.nix-prefetch-github -c nix-prefetch-github \
--rev 0d1246be53b37639427fe9959f748dd0fc429c8f \
CoatiSoftware SourcetrailPythonIndexer
{
"owner": "CoatiSoftware",
"repo": "SourcetrailPythonIndexer",
"rev": "0d1246be53b37639427fe9959f748dd0fc429c8f",
"sha256": "05hlpd3am029pv1wi6mys3q0ggp64axmg8bdf1fabl9cl9jffscq",
"fetchSubmodules": true
I built it locally and used the hash it told me it got instead of the expected one. I'm not sure if the hash changed upstream or was broken all along (maybe |
I should've mentioned this, but the example description I've put in the above comment is an accurate one. I've updated the version while creating the previous PR and forgot to update the hash. This slipped through the CI because Nix presumably locates the source by its hash, and the previous download was still remaining in the Nix store. |
Ah, all right, you want it mentioned in the source file or commit? |
The commit, so it's clear from the logs that the hash wasn't changed arbitrarily. |
Result of 1 package failed to build:
|
1268d2f
to
8d09067
Compare
@SuperSandro2000 no idea what's causing this failure and I have no way of debugging this currently. I can add another commit marking it as broken for darwin though. |
Result of 1 package built:
|
Fine by me. |
It's the old hash. Otherwise looks good. I'll try fixing the macOS issue after this is merged. |
7e771ca
to
c089f13
Compare
Fixed. |
The sha256 for the python indexer wasn't updated along with the git revision. The old hash is of commit 0d1246be53b37639427fe9959f748dd0fc429c8f, the new hash the correct one for tag v1_db25_p5 (3afb24195c5f3dc98e4cb60751f908f09f1bc046).
c089f13
to
be7c07f
Compare
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.
LGTM.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
This is a semi-automatic executed nixpkgs-review which does not build all packages (e.g. lumo, tensorflow or pytorch) Result of 1 package built:
|
Motivation for this change
Fix build of sourcetrail
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)cc @midchildan