-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Fetch pffft from upstream project website instead of bitbucket #108287
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
Conversation
We also have the option of pulling the archive from bitbucket still. But, as the source of vcvrack itself uses vcvrack.com, I'm thinking this will be looked at closer by upstream, than bitbucket. |
@ddelabru if you want to have a look as well |
repo = "pffft"; | ||
rev = "74d7261be17cf659d5930d4830609406bd7553e3"; | ||
pfft-source = fetchzip { | ||
url = "https://vcvrack.com/downloads/dep/pffft.zip"; | ||
sha256 = "084csgqa6f1a270bhybjayrh3mpyi2jimc87qkdgsqcp8ycsx1l1"; |
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.
Did you double check if this hash changed?
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.
The unpacked hash has probably not changed (calling :b vcv-rack
in nix repl used my cached /nix/store
version)
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.
You can put in whatever URL you want and the hash is not invalidated. The only way I know to test this is to change the hash and test of the old one is still generated.
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.
I have changed the hash first (I'm aware of this behavior). Here's what I did:
- change the hash to
"0000...00"
(same length) nix repl -I nixpkgs=. '<nixpkgs>'
- invoke
:b vcv-rack
- Get the hash from failure message, and update the source
- in the repl
:r
- then
:b vcv-rack
- this gave me back a cached build path
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.
$ nix-prefetch-url --unpack https://vcvrack.com/downloads/dep/pffft.zip
...
084csgqa6f1a270bhybjayrh3mpyi2jimc87qkdgsqcp8ycsx1l1
👍
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.
please change the commit message to:
vcv-rack: fetch pffft from upstream project website instead of bitbucket
Starting from this commit VCVRack/Rack@2db08f1 the upstream project does not expect to use bitbucket anymore. The title mentions that “BitBucket deleted all Mercurial repos”. Instead, an archive of the pffft source is hosted on vcvrack.com directly. The unziped sha256 is the same as before this change.
c2ab3a0
to
7964c98
Compare
@GrahamcOfBorg build vcv-rack |
Should this be backported to stable? vcv-rack installs there currently 404ing trying to fetch https://bitbucket.org/jpommier/pffft/get/29e4f76ac53bef048938754f32231d7836401f79.tar.gz |
Starting from this commit
VCVRack/Rack@2db08f1
the upstream project does not expect to use bitbucket anymore. The title
mentions that “BitBucket deleted all Mercurial repos”. Instead, an archive of
the pffft source is hosted on vcvrack.com directly. The unziped sha256 is the
same as before this change.
Motivation for this change
#107580
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)