navi: Panic when adding cheats

Describe the bug An error occurs when adding cheats for the first time

To Reproduce Steps to reproduce the behavior:

  1. execute: brew install denisidoro/tools/navi
  2. execute: navi repo add denistore/cheat
  3. Error
$ brew install denisidoro/tools/navi
$ navi repo add denistore/cheat
Cloning https://github.com/denistore/cheat into /Users/rtoledo/Library/Application Support/navi/cheats/tmp...

thread 'main' panicked at 'failed to clone: unsupported URL protocol; class=Net (12)', src/flows/repo.rs:57:19
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Expected behavior Cheats should be added

Versions:

  • OS: macOS 10.15.1 (19B2093)
  • GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19) Copyright © 2007 Free Software Foundation, Inc.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23 (10 by maintainers)

Most upvoted comments

@denisidoro - Btw, totally forgot to thank you. Thanks a lot for such an awesome cli utility! Being able to produce “dynamic” queries by taking input from user is just brilliant - I was using something called keep until now for this, but that was also static. Hence, converting to navi now! ❤️

(very cool command BTW, now that I was able to install cheats, I tried it and it rocks!)

I’m planning on changing the way a repo is downloaded: instead of using git, using curl+tar. Maybe that will fix the issue. I’ll leave this issue open until then.