xaionaro-go / cryptoWallet

A library to access to basic functions of hardware cryptocurrencies wallets
GNU Lesser General Public License v3.0
8 stars 6 forks source link

`dep ensure` fails #3

Closed rfjakob closed 6 years ago

rfjakob commented 6 years ago

Looks like github.com/trezor/usbhid has been deleted. The Travis job for gocryptfs runs dep ensure, which fails now: https://travis-ci.org/rfjakob/gocryptfs/jobs/401311246#L591

Running locally with verbose mode:

~/go/src/github.com/rfjakob/gocryptfs$ dep ensure -v
Root project is "github.com/rfjakob/gocryptfs"
 32 transitively valid internal packages
 13 external packages imported from 8 projects
(0)   ✓ select (root)
(1) ? attempt github.com/hanwen/go-fuse with 3 pkgs; at least 1 versions to try
(1)     try github.com/hanwen/go-fuse@master
(1) ✓ select github.com/hanwen/go-fuse@master w/5 pkgs
(2) ? attempt github.com/jacobsa/crypto with 1 pkgs; at least 1 versions to try
(2)     try github.com/jacobsa/crypto@master
(2) ✓ select github.com/jacobsa/crypto@master w/3 pkgs
(3) ? attempt github.com/pkg/xattr with 1 pkgs; at least 1 versions to try
(3)     try github.com/pkg/xattr@v0.3.0
(3) ✓ select github.com/pkg/xattr@v0.3.0 w/1 pkgs
(4) ? attempt github.com/rfjakob/eme with 1 pkgs; at least 1 versions to try
(4)     try github.com/rfjakob/eme@master
(4) ✓ select github.com/rfjakob/eme@master w/1 pkgs
(5) ? attempt github.com/xaionaro-go/cryptoWallet with 2 pkgs; 1 versions to try
(5)     try github.com/xaionaro-go/cryptoWallet@master
(5) ✓ select github.com/xaionaro-go/cryptoWallet@master w/9 pkgs
(6) ? attempt golang.org/x/crypto with 3 pkgs; at least 1 versions to try
(6)     try golang.org/x/crypto@master
(6) ✓ select golang.org/x/crypto@master w/4 pkgs
(7) ? attempt golang.org/x/sync with 1 pkgs; at least 1 versions to try
(7)     try golang.org/x/sync@master
(7) ✓ select golang.org/x/sync@master w/1 pkgs
(8) ? attempt golang.org/x/sys with 1 pkgs; at least 1 versions to try
(8)     try golang.org/x/sys@master
(8) ✓ select golang.org/x/sys@master w/1 pkgs
(9) ? attempt github.com/conejoninja/tesoro with 3 pkgs; 6 versions to try
(9)     try github.com/conejoninja/tesoro@master
(9) ✓ select github.com/conejoninja/tesoro@master w/5 pkgs
(10)  ? attempt github.com/zserge/hid with 1 pkgs; 1 versions to try
(10)      try github.com/zserge/hid@master
(10)  ✓ select github.com/zserge/hid@master w/1 pkgs
(11)  ? revisit golang.org/x/sys to add 1 pkgs
(11)    ✓ include 1 more pkgs from golang.org/x/sys@master
(11)  ? attempt github.com/conejoninja/hid with 1 pkgs; 2 versions to try
(12)      try github.com/conejoninja/hid@master
(12)  ✓ select github.com/conejoninja/hid@master w/1 pkgs
(13)    ← no more versions of github.com/trezor/usbhid to try; begin backtrack
(12)  ← backtrack: no more versions of github.com/conejoninja/hid to try
(11)  ← backtrack: popped 1 pkgs from golang.org/x/sys
(10)  ← backtrack: no more versions of github.com/zserge/hid to try
(9) ← backtrack: no more versions of github.com/conejoninja/tesoro to try
(8) ← backtrack: no more versions of golang.org/x/sys to try
(7) ← backtrack: no more versions of golang.org/x/sync to try
(6) ← backtrack: no more versions of golang.org/x/crypto to try
(5) ← backtrack: no more versions of github.com/xaionaro-go/cryptoWallet to try
(4) ← backtrack: no more versions of github.com/rfjakob/eme to try
(3) ← backtrack: no more versions of github.com/pkg/xattr to try
(2) ← backtrack: no more versions of github.com/jacobsa/crypto to try
(1) ← backtrack: no more versions of github.com/hanwen/go-fuse to try
  ✗ solving failed

Solver wall times by segment:
     b-list-versions: 6.625424118s
     b-source-exists: 6.566984045s
              b-gmal: 1.201033732s
         b-list-pkgs: 700.927541ms
         select-root:   3.922211ms
         select-atom:   3.062032ms
             satisfy:   2.713405ms
            unselect:   1.990376ms
            new-atom:   1.078504ms
  b-deduce-proj-root:    145.942µs
           backtrack:    138.884µs
               other:     76.081µs
           b-matches:     31.222µs
            add-atom:     10.963µs
          b-pair-rev:      3.975µs
      b-pair-version:      1.897µs

  TOTAL: 15.107544928s

Solving failure: no valid source could be created: 
    failed to set up sources from the following URLs:
https://github.com/trezor/usbhid
: remote repository at https://github.com/trezor/usbhid does not exist, or is inaccessible: fatal: could not read Username for 'https://github.com': terminal prompts disabled
: exit status 128
    failed to set up sources from the following URLs:
ssh://git@github.com/trezor/usbhid
: remote repository at ssh://git@github.com/trezor/usbhid does not exist, or is inaccessible: ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
: exit status 128
    failed to set up sources from the following URLs:
git://github.com/trezor/usbhid
: remote repository at git://github.com/trezor/usbhid does not exist, or is inaccessible: fatal: remote error: 
  Repository not found.
: exit status 128
    failed to set up sources from the following URLs:
http://github.com/trezor/usbhid
: remote repository at http://github.com/trezor/usbhid does not exist, or is inaccessible: fatal: could not read Username for 'https://github.com': terminal prompts disabled
: exit status 128
xaionaro commented 6 years ago

Damn. Indeed. I made a Pull Request to trezor/usbhid and they deleted the repository :(

UPD: It appears they moved the code to trezor/trezord-go/usb/lowlevel: https://github.com/trezor/trezord-go/commit/cc90c6fe8656b4e80bfa5e19925d697aa0102677

xaionaro commented 6 years ago

@rfjakob seems to be fixed. Closing for now. I'll reopen the issue if any.