Conversation
|
Thanks @JeffFaer . |
|
Oh, interesting. I'm not running on a mac, so that could be it. What container engine are you using? What version of Go do you have installed? $ uname -a
Linux 6.5.0-17-generic #17~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 16 14:32:32 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
$ docker version
Client:
Version: 24.0.5
API version: 1.43
Go version: go1.20.3
Git commit: 24.0.5-0ubuntu1~22.04.1
Built: Mon Aug 21 19:50:14 2023
OS/Arch: linux/amd64
Context: default
Server:
Engine:
Version: 24.0.5
API version: 1.43 (minimum version 1.12)
Go version: go1.20.3
Git commit: 24.0.5-0ubuntu1~22.04.1
Built: Mon Aug 21 19:50:14 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.2
GitCommit:
runc:
Version: 1.1.7-0ubuntu1~22.04.2
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:
$ go version
go version go1.22.0 linux/amd64 |
|
I tried with go |
|
Sounds like this might be a difference between Mac and Linux then. Do you have any Linux/Ubuntu machines you can try this on? I did manage to reproduce this on a different, Debian machine. |
testprog was failing with "cannot execute: required file not found". Some Google sleuthing found that it was probably because libc6 was missing. Redhat has a similar error where it was complaining that glibc v2.32 was missing. ubi8 only seemed to be able to install v2.28, but ubi9 runs testprog without any other tweaks. Signed-off-by: Jeffrey Faer <jeffrey.faer@gmail.com>
|
Can provide the error you are seeing? Actually the commands leading up to the error would also help |
$ cd $(mktemp -d)
$ git clone https://github.com/spf13/cobra.git
$ git clone https://github.com/marckhouzam/cobra-completion-testing.git
$ cd cobra-completion-testing/
$ make bash
<output in https://gist.github.com/JeffFaer/9254a0920c2af16641edefbb4ddf8c6c>https://gist.github.com/JeffFaer/9254a0920c2af16641edefbb4ddf8c6c To debug this, I played around with the docker images to see why it didn't seem like anything was happening: $ ./testprog/bin/testprog help
Usage:
testprog [flags]
testprog [command]
...
$ docker run -it --entrypoint /bin/bash comp-test:bash5
2f35045c85f7:/work# ./testprog/bin/testprog help
bash: ./testprog/bin/testprog: cannot execute: required file not found |
marckhouzam
left a comment
There was a problem hiding this comment.
This doesn't break anything for me, so if it helps in your case, although I wasn't able to reproduce, I'm going to merge it.
testprog was failing with "cannot execute: required file not found". Some Google sleuthing found that it was probably because libc6 was missing.
Redhat has a similar error where it was complaining that glibc v2.32 was missing. ubi8 only seemed to be able to install v2.28, but ubi9 runs testprog without any other tweaks.