Skip to content
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

chromedriver hash is incorrect #106272

Closed
sumnerevans opened this issue Dec 7, 2020 · 2 comments
Closed

chromedriver hash is incorrect #106272

sumnerevans opened this issue Dec 7, 2020 · 2 comments

Comments

@sumnerevans
Copy link
Member

Describe the bug
Installing the chromedriver package fails due to a hash mismatch:

$ nix-env -iA nixos.chromedriver
installing 'chromedriver-87.0.4280.88'
these derivations will be built:
  /nix/store/3qaakg47py0dq6pzvfjaakpbicm4nj1j-chromedriver_linux64.zip.drv
  /nix/store/q9zb853brn6djydv1bmjr9386j8iqp6p-chromedriver-87.0.4280.88.drv
building '/nix/store/3qaakg47py0dq6pzvfjaakpbicm4nj1j-chromedriver_linux64.zip.drv'...

trying https://chromedriver.storage.googleapis.com/87.0.4280.88/chromedriver_linux64.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 5978k  100 5978k    0     0  4083k      0  0:00:01  0:00:01 --:--:-- 4080k
hash mismatch in fixed-output derivation '/nix/store/xssshmydphnbbc2hc0r4gmn9ixsf3byx-chromedriver_linux64.zip':
  wanted: sha256:141mr2jiy3nslwd3s43m4i6plkv9wv5fgi78cn7mz0ac9x6fpcgx
  got:    sha256:11plh2hs2zpa14ymlbnj92pa58krl28yw4c0s55wk8qsxvzvl02m
cannot build derivation '/nix/store/q9zb853brn6djydv1bmjr9386j8iqp6p-chromedriver-87.0.4280.88.drv': 1 dependencies couldn't be built
error: build of '/nix/store/q9zb853brn6djydv1bmjr9386j8iqp6p-chromedriver-87.0.4280.88.drv' failed

To Reproduce
Steps to reproduce the behavior:

  1. Simply run nix-env -iA nixos.chromedriver

Expected behavior
It should build and install successfully.

Additional context
Add any other context about the problem here.

Notify maintainers
@cillianderoiste @marsam @primeos

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 5.9.12, NixOS, 21.03pre257339.83cbad92d73 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.9`
 - channels(sumner): `"home-manager"`
 - channels(root): `"nixos-21.03pre257339.83cbad92d73, nixpkgs-21.03pre251181.dd1b7e377f6"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
  chromedriver
# a list of nixos modules affected by the problem
module:
@primeos
Copy link
Member

primeos commented Dec 8, 2020

Some links to better document this:

diffoscope output:

$ diffoscope /nix/store/ip7sbkrkj1gqjsfb01f449zvgqm8qrdr-chromedriver_linux64.zip /nix/store/xssshmydphnbbc2hc0r4gmn9ixsf3byx-chromedriver_linux64.zip
--- /nix/store/ip7sbkrkj1gqjsfb01f449zvgqm8qrdr-chromedriver_linux64.zip
+++ /nix/store/xssshmydphnbbc2hc0r4gmn9ixsf3byx-chromedriver_linux64.zip
├── zipinfo {}
│ @@ -1,3 +1,3 @@
│  Zip file size: 6121623 bytes, number of entries: 1
│ --rwxr-xr-x  3.0 unx 12405080 bx defN 20-Dec-02 16:42 chromedriver
│ +-rwxr-xr-x  3.0 unx 12405080 bx defN 20-Dec-03 18:14 chromedriver
│  1 file, 12405080 bytes uncompressed, 6121449 bytes compressed:  50.7%

primeos added a commit to primeos/nixpkgs that referenced this issue Jan 3, 2021
I just regenerated upstream-info.json using update.py again and got a
different hash this time (but the same hash as in NixOS#106272). Therefore,
the only possible explanation I have is that upstream changed the file
that is hosted at [0]. I'll try to contact upstream regarding this.

Fix NixOS#106272.

[0]: https://chromedriver.storage.googleapis.com/87.0.4280.88/chromedriver_linux64.zip

(cherry picked from commit d35b635)
@primeos
Copy link
Member

primeos commented Jan 7, 2021

#108631 (comment) - Unfortunately the ZIP archive / chromedriver timestamp changed again... :o

I've also opened a bug report now (after I had no luck on their ML): https://bugs.chromium.org/p/chromedriver/issues/detail?id=3703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants