mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-24 04:16:27 +02:00
36c49b1306
this was first broken in 58307599588f8d9177c62151d5a4e77f83196fe7 and hotfixed in 093291f3ad176f23463103baa3bb254bf96a6773 I believe this is a better fix
20 lines
458 B
Go
20 lines
458 B
Go
// Package project sets "high level" defaults related to the project.
|
|
package project
|
|
|
|
import "github.com/goreleaser/goreleaser/context"
|
|
|
|
// Pipe implemens defaulter to set the project name
|
|
type Pipe struct{}
|
|
|
|
func (Pipe) String() string {
|
|
return "project name"
|
|
}
|
|
|
|
// Default set project defaults
|
|
func (Pipe) Default(ctx *context.Context) error {
|
|
if ctx.Config.ProjectName == "" {
|
|
ctx.Config.ProjectName = ctx.Config.Release.GitHub.Name
|
|
}
|
|
return nil
|
|
}
|