What happened:
When trying to install the mixin using the command
jb install github.com/thanos-io/thanos/mixin/thanos@master
It fails with an error
vendor/github.com/thanos-io/thanos/mixin/thanos: no such file or directory
Details logs with trace can be found below
What you expected to happen:
The mixin should be installed successfully.
How to reproduce it (as minimally and precisely as possible):
Simply
jb install github.com/thanos-io/thanos/mixin/thanos@master
Full logs to relevant components:
GET https://github.com/thanos-io/thanos/archive/d33cb7b629fc0eaf7d51cb480e3f40ccad31678a.tar.gz 200
panic: rename /Users/ahmed/kubernetes/mixin/vendor/.tmp/6a0b6008a3db1f7129a622bc3c843b6d368222728/mixin/thanos /Users/ahmed/kubernetes/monitoring/mixin/vendor/github.com/thanos-io/thanos/mixin/thanos: no such file or directory
goroutine 1 [running]:
github.com/jsonnet-bundler/jsonnet-bundler/pkg.(*GitPackage).Install(0xc000010278, 0x149acc0, 0xc00001c1f0, 0xc000020720, 0x28, 0xc000358300, 0x3e, 0xc00001cf18, 0x6, 0x0, ...)
/Users/ahmed/Workspace/go/src/github.com/jsonnet-bundler/jsonnet-bundler/pkg/git.go:228 +0x1e9d
github.com/jsonnet-bundler/jsonnet-bundler/pkg.download(0xc00007ea50, 0x0, 0xc00001cf18, 0x6, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc000358300, ...)
/Users/ahmed/Workspace/go/src/github.com/jsonnet-bundler/jsonnet-bundler/pkg/packages.go:290 +0x1b6
github.com/jsonnet-bundler/jsonnet-bundler/pkg.ensure(0xc00017e7e0, 0xc000358300, 0x3e, 0xc00017f680, 0x3e, 0x0, 0x1)
/Users/ahmed/Workspace/go/src/github.com/jsonnet-bundler/jsonnet-bundler/pkg/packages.go:234 +0x6d7
github.com/jsonnet-bundler/jsonnet-bundler/pkg.Ensure(0xc00017e7e0, 0x1, 0xc000358300, 0x3e, 0xc00017f680, 0x0, 0x0, 0x0)
/Users/ahmed/Workspace/go/src/github.com/jsonnet-bundler/jsonnet-bundler/pkg/packages.go:55 +0x67
main.installCommand(0xc000016044, 0x37, 0x141e265, 0x6, 0xc000060fd0, 0x1, 0x1, 0x0, 0xc0001310e0)
/Users/ahmed/Workspace/go/src/github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb/install.go:76 +0x765
main.Main(0xc0000220b8)
/Users/ahmed/Workspace/go/src/github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb/main.go:86 +0xc69
main.main()
/Users/ahmed/Workspace/go/src/github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb/main.go:39 +0x25
Environment:
uname -a): Darwin MacBook-Pro.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64Thanks for reporting. I got the same error running this command.
The correct path should be below. This doc https://github.com/thanos-io/thanos/blob/master/mixin/README.md#use-as-a-library should be updated.
jb install github.com/thanos-io/thanos/mixin@master
@yeya24 yeah just figured out and came here to reply that and saw you already replied :) let me create a PR to fix the documentation.
Most helpful comment
@yeya24 yeah just figured out and came here to reply that and saw you already replied :) let me create a PR to fix the documentation.