Skip to content

Conversation

@douglascamata
Copy link
Member

@douglascamata douglascamata commented Oct 31, 2025

Doing a little house keeping that I promised a very long time ago. This breaks up the huge cmd/goreleaser/internal/configure.go into 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.

@douglascamata douglascamata requested a review from a team as a code owner October 31, 2025 13:25
@mowies mowies changed the title Split up cmd/goreleaser/internal/configure.go [chore] Split up cmd/goreleaser/internal/configure.go Nov 3, 2025
return b
}

func (b *distributionBuilder) nightly() config.Nightly {
Copy link
Member

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

Suggested change
func (b *distributionBuilder) nightly() config.Nightly {
func (b *distributionBuilder) newNightly() config.Nightly {

return b
}

func (b *distributionBuilder) sboms() []config.SBOM {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (b *distributionBuilder) sboms() []config.SBOM {
func (b *distributionBuilder) NewSboms() []config.SBOM {

return b
}

func (b *distributionBuilder) dockerSigns() []config.Sign {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
func (b *distributionBuilder) dockerSigns() []config.Sign {
func (b *distributionBuilder) newDockerSigns() []config.Sign {

return b
}

func (b *distributionBuilder) binaryMonorepo(dir string) config.Monorepo {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// This is required because of same non-obvious path/workdir handling in
// This is required because of some non-obvious path/workdir handling in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants