Can't generate hoogle data because wget certificate has expired?
I am trying to run "hoogle data" and I am getting this as output:
Downloading downloads/base.txt
# base.txt (for downloads/base.txt)
ERROR: cannot verify www.haskell.org certificate, issued by '/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - G2':
Issued certificate has expired.
To connect to www.haskell.org insecurely, use `--no-check-certificate'.
hoogle: Error when running Shake build system:
* default.hoo
* platform.hoo
* mtl.hoo
* base.txt
* downloads/base.txt.cache
* downloads/base.txt
Development.Shake.command, system command failed
Command: wget -nv http://www.haskell.org/hoogle/base.txt --output-document=downloads/base.txt
Exit code: 5
Stderr:
ERROR: cannot verify www.haskell.org certificate, issued by '/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - G2':
Issued certificate has expired.
To connect to www.haskell.org insecurely, use `--no-check-certificate'.
I'm not sure what to do, the last time I ran hoogle data, it just worked and generated everything, but I can't figure out how to get around this error.
+3
source to share
1 answer
To work around this issue, try creating a wrapper for wget
:
I am assuming your installed wget
is in the / usr / bin / wget directory
Save this file as wget
somewhere in $PATH
and make sure it's executable:
#!/bin/sh
/usr/bin/wget --no-check-certificate "$@"
Now try running the hoogle command.
+5
source to share