berberman / nvfetcher

Generate nix sources expr for the latest version of packages
https://nvfetcher.torus.icu
MIT License
178 stars 15 forks source link

`Data.Binary.Get.runGet at position 10: not enough bytes` #117

Closed bandithedoge closed 7 months ago

bandithedoge commented 8 months ago

This exception pops up whenever I try to fetch anything on my machine. It happens both with git and URL sources.

Running nvfetcher clean as mentioned in #35 did not fix the issue.

Strangely enough it works just fine in CI: https://github.com/bandithedoge/nur-packages/actions/runs/8183366662/job/22376099783#step:7:375

https://github.com/bandithedoge/nur-packages/blob/master/pkgs/tal/nvfetcher.toml gives the following:

# CheckManual: latest
# CheckManual: latest
# CheckManual: latest
# CheckManual: latest
# CheckManual: latest
# CheckManual: latest
# CheckManual: latest
# CheckManual: latest
# FetchUrl
  url: https://tal-software.com/downloads/plugins/TAL-BassLine-101_64_linux.zip
# FetchUrl
  url: https://tal-software.com/downloads/plugins/TAL-Sampler_64_linux.zip
# FetchUrl
  url: https://tal-software.com/downloads/plugins/TAL-Dub-X_64_linux.zip
# FetchUrl
  url: https://tal-software.com/downloads/plugins/TAL-Filter-2_64_linux.zip
# FetchUrl
  url: https://tal-software.com/downloads/plugins/Tal-Chorus-LX_64_linux.zip
# FetchUrl
  url: https://tal-software.com/downloads/plugins/TAL-NoiseMaker_64_linux.zip
# CheckManual: latest
# FetchUrl
  url: https://tal-software.com/downloads/plugins/TAL-Pha_64_linux.zip
# FetchUrl
  url: https://tal-software.com/downloads/plugins/TAL-Reverb-4_64_linux.zip
nvfetcher: Error when running Shake build system:
  at want, called at src/NvFetcher.hs:167:25 in nvfetcher-0.6.2.0-2oqz5Z2t3Fp6rVQQnP9T9a:NvFetcher
* Depends on: build
  at apply1, called at src/NvFetcher/Core.hs:126:16 in nvfetcher-0.6.2.0-2oqz5Z2t3Fp6rVQQnP9T9a:NvFetch
er.Core
* Depends on: Core ("dub-x")
  at apply1, called at src/Development/Shake/Internal/Rules/Oracle.hs:159:32 in shake-0.19.7-6uiAUkkvwa
BLBQgRL9bx4:Development.Shake.Internal.Rules.Oracle
* Depends on: OracleQ (RunFetch ForceFetch (FetchUrl {_furl = "https://tal-software.com/downloads/plugi
ns/TAL-Dub-X_64_linux.zip", _name = Nothing, _sha256 = ()}))
  at error, called at libraries/binary/src/Data/Binary/Get.hs:345:5 in binary-0.8.9.1:Data.Binary.Get
* Raised the exception:
Data.Binary.Get.runGet at position 10: not enough bytes
berberman commented 8 months ago

Since the database was moved to xdg data home in #55, nvfetcher clean no longer removes it. The new command nvfetcher purge introduced in #114 should work now.