Documentation ¶
Overview ¶
Package git implements the Pipe interface getting and validating the current git repository state
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoTag = fmt.Errorf("git doesn't contain any tags. Either add a tag or use --snapshot")
ErrNoTag happens if the underlying git repository doesn't contain any tags but no snapshot-release was requested.
View Source
var ErrNotRepository = fmt.Errorf("current folder is not a git repository")
ErrNotRepository happens if you try to run goreleaser against a folder which is not a git repository.
Functions ¶
This section is empty.
Types ¶
type ErrDirty ¶
type ErrDirty struct {
// contains filtered or unexported fields
}
ErrDirty happens when the repo has uncommitted/unstashed changes
type ErrInvalidVersionFormat ¶
type ErrInvalidVersionFormat struct {
// contains filtered or unexported fields
}
ErrInvalidVersionFormat is return when the version isnt in a valid format
func (ErrInvalidVersionFormat) Error ¶
func (e ErrInvalidVersionFormat) Error() string
type ErrWrongRef ¶
type ErrWrongRef struct {
// contains filtered or unexported fields
}
ErrWrongRef happens when the HEAD reference is different from the tag being built
func (ErrWrongRef) Error ¶
func (e ErrWrongRef) Error() string
Click to show internal directories.
Click to hide internal directories.