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
Prebuilt binaries cannot be used with dockers #4746
Labels
bug
Something isn't working
Comments
jsirianni
added
bug
Something isn't working
triage
Issue pending triage by one of the maintainers
labels
Apr 3, 2024
Hey! Yeah, the problem is that it wasn't properly checking things before. In your case, the problem is that you are including builds with id - id: prometheus-amd64
goos: linux
goarch: amd64
# remove these:
# ids:
# - prometheus
image_templates:
- "redacted/redacted-prometheus-amd64:latest"
dockerfile: ./package/prometheus/Dockerfile
use: buildx
extra_files:
- package/prometheus/config/prometheus.yml
- package/prometheus/config/rules.yml
- package/prometheus/config/web.yml
- package/prometheus/service/container-entrypoint.sh that way, you'll hint goreleaser you don't expect to include any builds, and everything should be fine. |
this should probably be ported to the OSS version as well |
caarlos0
added a commit
that referenced
this issue
Apr 3, 2024
Thanks, this worked for me! |
caarlos0
added a commit
that referenced
this issue
Apr 3, 2024
refs https://github.com/orgs/goreleaser/discussions/4469 closes #4746 Also made the error better, and added more details to the docs.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
This bug seems to be introduced after v1.23.0. Reproducible on v1.24 and v1.25.
I have a prebuilt builder that registers a binary that is downloaded using a script called by a pre hook.
This binary is successfully used with Linux packages using nfpms. My docker step fails, and looks like this:
The dockerfile does not actually COPY the prebuilt binary, it looks like this:
I get this error
How can we reproduce this?
Use a prebuilt binary builder and a docker configuration that uses that binary. On v1.23.0, it works. On v1.24 / v1.25 it fails.
goreleaser version
GoReleaser Check
Search
Supporter
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: