Closed as not planned
Closed as not planned
Description
Describe the problem you are having and how to reproduce it. Include any other additional context that can help us troubleshoot.
Environment report
~ $ fish --version
fish, version 3.1.0
~ $ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
~ $ uname -a
Linux hzgl-alienware-202109 4.4.0-22000-Microsoft #653-Microsoft Wed Apr 27 16:06:00 PST 2022 x86_64 x86_64 x86_64 GNU/Linux
~ $ git --version
git version 2.25.1
# ~/.gitconfig does not exist
Since about a week ago, the installer constantly fails to clone the packages-main repository:
~ $ rm -rf ~/.local/share/omf/
~ $ wget -O /tmp/omf-install https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install
--2022-06-06 10:36:24-- https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.110.133, 185.199.108.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19035 (19K) [text/plain]
Saving to: ‘/tmp/omf-install’
/tmp/omf-install 100%[===============================================================================================>] 18.59K --.-KB/s in 0.002s
2022-06-06 10:36:24 (8.96 MB/s) - ‘/tmp/omf-install’ saved [19035/19035]
~ $ fish /tmp/omf-install --noninteractive --verbose
source: Error encountered while sourcing file “/home/howard/.local/share/omf/init.fish”:
source: No such file or directory
DEBUG: verbose turned on
Checking for a sane environment...
DEBUG: Command 'awk' is /usr/bin/gawk
DEBUG: Command 'basename' is /usr/bin/basename
DEBUG: Command 'cp' is /usr/bin/cp
DEBUG: Command 'cut' is /usr/bin/cut
DEBUG: Command 'date' is /usr/bin/date
DEBUG: Command 'dirname' is /usr/bin/dirname
DEBUG: Command 'env' is /usr/bin/env
DEBUG: Command 'fish' is /usr/bin/fish
DEBUG: Command 'fold' is /usr/bin/fold
DEBUG: Command 'head' is /usr/bin/head
DEBUG: Command 'mkdir' is /usr/bin/mkdir
DEBUG: Command 'mv' is /usr/bin/mv
DEBUG: Command 'readlink' is /usr/bin/readlink
DEBUG: Command 'rm' is /usr/bin/rm
DEBUG: Command 'sed' is /usr/bin/sed
DEBUG: Command 'sort' is /usr/bin/sort
DEBUG: Command 'tar' is /usr/bin/tar
DEBUG: Command 'tr' is /usr/bin/tr
DEBUG: Command 'which' is /usr/bin/which
DEBUG: Checking for a sane 'head' implementation
DEBUG: Checking for a sane 'sort' implementation
DEBUG: Checking for a working AWK interpreter
DEBUG: Verifying Git implementation is not buggy Git for Windows
DEBUG: Verifying Git autocrlf is not enabled
Installing Oh My Fish to /home/howard/.local/share/omf...
Using release channel "stable".
Cloning master from https://github.com/oh-my-fish/oh-my-fish.git...
Setting up Oh My Fish configuration...
Updating https://github.com/oh-my-fish/packages-main master... error: bad signature 0x00000000
fatal: index file corrupt
Error
Install aborted: Error installing plugins
Oh My Fish installation failed.
If you think that it's a bug, please open an
issue with the complete installation log here:
http://github.com/oh-my-fish/oh-my-fish/issues
This problem is only observed on WSL v1, the installation proceeds normally on my other Linux hosts.
Creating a clone of the repository manually seems to work:
~ $ git clone https://github.com/oh-my-fish/packages-main
Cloning into 'packages-main'...
remote: Enumerating objects: 1428, done.
remote: Counting objects: 100% (59/59), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 1428 (delta 23), reused 36 (delta 13), pack-reused 1369
Receiving objects: 100% (1428/1428), 216.19 KiB | 1.12 MiB/s, done.
Resolving deltas: 100% (598/598), done.
~ $ cd packages-main/
~/packages-main $ git remote -v
origin https://github.com/oh-my-fish/packages-main (fetch)
origin https://github.com/oh-my-fish/packages-main (push)
~ /packages-main $ git fetch origin
~/packages-main $