Documentation ¶
Overview ¶
Package archive implements the pipe interface with the intent of archiving and compressing the binaries, readme, and other artifacts. It also provides an Archive interface which represents an archiving format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrArchiveDifferentBinaryCount = errors.New("archive has different count of built binaries for each platform, which may cause your users confusion. Please make sure all builds used have the same set of goos/goarch/etc or split it into multiple archives")
ErrArchiveDifferentBinaryCount happens when an archive uses several builds which have different goos/goarch/etc sets, causing the archives for some platforms to have more binaries than others. GoReleaser breaks in these cases as it will only cause confusion to other users.
Functions ¶
Types ¶
type EnhancedArchive ¶ added in v0.160.0
type EnhancedArchive struct {
// contains filtered or unexported fields
}
EnhancedArchive is an archive.Archive implementation which decorates an archive.Archive adding wrap directory support, logging and windows backslash fixes.
func (EnhancedArchive) Add ¶ added in v0.160.0
func (d EnhancedArchive) Add(name, path string) error
Add adds a file.
func (EnhancedArchive) Close ¶ added in v0.160.0
func (d EnhancedArchive) Close() error
Close closes the underlying archive.