Replies: 3 comments 4 replies
-
This looks like a natural way to specify files to be included in a package. I like how you could potentially include multiple builds in a single package. For Docker why is a build ID required, feels like v2 could be a good opportunity to decouple that requirement. |
Beta Was this translation helpful? Give feedback.
-
see #4396, #4346, #2650, #4423 all problems that would be solved/easier to reason about in terms of this proposal IMHO |
Beta Was this translation helpful? Give feedback.
-
another thing we should handle in this one: options E.g., for the blob uploader, we might need to set some headers. One option is to have the headers global per configuration, and another per file... both may cause code to be repeated in different cases, so I guess its a matter of which one might happen more... |
Beta Was this translation helpful? Give feedback.
-
GoReleaser has good defaults regarding which files to add to the release when it is only its own products (the binaries, archives, etc).
Of course, many projects will need to add more files than just the binaries.
Over the years, we added more and more things, and the current state is now a bit weird IMHO.
We have:
ids
(to filter by source id)extra_files
templated_extra_files
files
I propose a fix for this, introducing, "just files"™️:
This would, in the example of nFPMs, replace the
meta
,bindir
,ids
,extra_files
andtemplated_extra_files
.We can probably make it backwards compatible, deprecate the old options, and remove them on v2.
I think it should replace all previous, and add support for things that weren't clear before.
The only downside is that if you just want to add a new file to the
extra_files
section, you'll need to add the binary as well - this could be mitigated by adding better defaults to the jsonschema, as well as handling it ongoreleaser init
. Maybe, we even drop the defaults at runtime for this particular thing, as then its less confusing.I'm open to hear your thoughts on this.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions