-
Notifications
You must be signed in to change notification settings - Fork 214
[chore] Split up cmd/goreleaser/internal/configure.go
#1235
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
base: main
Are you sure you want to change the base?
[chore] Split up cmd/goreleaser/internal/configure.go
#1235
Conversation
Signed-off-by: Douglas Camata <[email protected]>
cmd/goreleaser/internal/configure.gocmd/goreleaser/internal/configure.go
| return b | ||
| } | ||
|
|
||
| func (b *distributionBuilder) nightly() config.Nightly { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could keep the consistency here and also rename this with new prefix
| func (b *distributionBuilder) nightly() config.Nightly { | |
| func (b *distributionBuilder) newNightly() config.Nightly { |
| return b | ||
| } | ||
|
|
||
| func (b *distributionBuilder) sboms() []config.SBOM { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| func (b *distributionBuilder) sboms() []config.SBOM { | |
| func (b *distributionBuilder) NewSboms() []config.SBOM { |
| return b | ||
| } | ||
|
|
||
| func (b *distributionBuilder) dockerSigns() []config.Sign { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| func (b *distributionBuilder) dockerSigns() []config.Sign { | |
| func (b *distributionBuilder) newDockerSigns() []config.Sign { |
| return b | ||
| } | ||
|
|
||
| func (b *distributionBuilder) binaryMonorepo(dir string) config.Monorepo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| func (b *distributionBuilder) binaryMonorepo(dir string) config.Monorepo { | |
| func (b *distributionBuilder) newBinaryMonorepo(dir string) config.Monorepo { |
| return b | ||
| } | ||
|
|
||
| func (b *distributionBuilder) binaryRelease(header string) config.Release { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| func (b *distributionBuilder) binaryRelease(header string) config.Release { | |
| func (b *distributionBuilder) newBinaryRelease(header string) config.Release { |
| withDefaultBinaryRelease(opampReleaseHeader). | ||
| withDefaultMSIConfig(). | ||
| withDefaultNfpms(). | ||
| // This is required because of same non-obvious path/workdir handling in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // This is required because of same non-obvious path/workdir handling in | |
| // This is required because of some non-obvious path/workdir handling in |
Doing a little house keeping that I promised a very long time ago. This breaks up the huge
cmd/goreleaser/internal/configure.gointo many files, so that it's easy to find things and scroll around, particularly when it comes to looking at how we build the goreleaser configuration file for each one of the distros.I'm very open to feedback on the names of the new files. Naming things is difficult.
Small note: I generate the goreleaser files of all distros during my work to ensure that these changes still produces the exact same files as before.