New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot docker COPY binary with - in the name? #3545
Comments
BTW we tried version |
goreleaser simply calls |
Weird. |
I have no idea... is it possible you have a space or some "invisible" char in the binary name? its the only thing that comes to mind... fwiw if this is a bug in goreleaser since v1.3, a lot of people would be having it... even goreleaser itself probably... so, I'm suspicious its something else entirely |
uhm I need to double check that weird character theory... but I think I rewrote that name several times. |
if you have a reproducible repo, I can try here as well.. |
Reproduced: Did not need a |
ahh, you're missing the if you add https://github.com/josvazg/grfail/blob/main/goreleaser.yml#LL26 |
see #3552 |
Oh I see. Basically the error message was throwing me in a totally wrong direction. I guess the issue was that, as the goarm version was not selected, then the preparation of the context for ARM was not being done properly and the copy did not find the expected binary name. But then I still do not understand why the copy with asterisks did work. |
fixes #3545 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
probably it worked in the sense that it didn't failed, but the binary was not in the image, just license and other files... maybe you looked into the wrong image later? |
fwiw: now it'll default to 6, so it should be a bit better... thinking about it a bit more now, I'll also add a warning if nothing is matched... |
refs #3545 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
refs #3545 Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
What happened?
Our Dockerfile used this COPY command:
COPY refs-controller /bin/
But we were getting an error like this:
How can we reproduce this?
Maybe it happens with any binary that includes a
-
in the name?We tried this instead:
COPY * /bin/
And we got this in bin:
So basically we knew that
refs-controller
was there.We end up tricking goreleaser with:
goreleaser version
GoReleaser Check
Search
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: