mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-19 20:57:53 +02:00
parent
846e26f48b
commit
0f6d8daa05
@ -29,7 +29,7 @@ const (
|
|||||||
type Pipe struct{}
|
type Pipe struct{}
|
||||||
|
|
||||||
func (Pipe) String() string {
|
func (Pipe) String() string {
|
||||||
return "creating archives"
|
return "archives"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default sets the pipe defaults
|
// Default sets the pipe defaults
|
||||||
@ -91,7 +91,6 @@ func create(ctx *context.Context, binaries []artifact.Artifact) error {
|
|||||||
}
|
}
|
||||||
defer archiveFile.Close() // nolint: errcheck
|
defer archiveFile.Close() // nolint: errcheck
|
||||||
var log = log.WithField("archive", archivePath)
|
var log = log.WithField("archive", archivePath)
|
||||||
log.Info("creating")
|
|
||||||
var a = archive.New(archiveFile)
|
var a = archive.New(archiveFile)
|
||||||
defer a.Close() // nolint: errcheck
|
defer a.Close() // nolint: errcheck
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ var ErrTooManyDarwin64Builds = errors.New("brew tap requires at most one darwin
|
|||||||
type Pipe struct{}
|
type Pipe struct{}
|
||||||
|
|
||||||
func (Pipe) String() string {
|
func (Pipe) String() string {
|
||||||
return "creating homebrew formula"
|
return "homebrew formula"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Publish brew formula
|
// Publish brew formula
|
||||||
|
@ -27,7 +27,7 @@ var ErrNoDocker = errors.New("docker not present in $PATH")
|
|||||||
type Pipe struct{}
|
type Pipe struct{}
|
||||||
|
|
||||||
func (Pipe) String() string {
|
func (Pipe) String() string {
|
||||||
return "creating Docker images"
|
return "Docker images"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default sets the pipe defaults
|
// Default sets the pipe defaults
|
||||||
|
@ -30,7 +30,7 @@ const defaultNameTemplate = "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arc
|
|||||||
type Pipe struct{}
|
type Pipe struct{}
|
||||||
|
|
||||||
func (Pipe) String() string {
|
func (Pipe) String() string {
|
||||||
return "creating Linux packages with nfpm"
|
return "Linux packages with nfpm"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Default sets the pipe defaults
|
// Default sets the pipe defaults
|
||||||
@ -154,7 +154,7 @@ func create(ctx *context.Context, format, arch string, binaries []artifact.Artif
|
|||||||
}
|
}
|
||||||
|
|
||||||
var path = filepath.Join(ctx.Config.Dist, name+"."+format)
|
var path = filepath.Join(ctx.Config.Dist, name+"."+format)
|
||||||
log.WithField("file", path).Info("creating")
|
log.WithField("file", path)
|
||||||
w, err := os.Create(path)
|
w, err := os.Create(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -52,7 +52,7 @@ func doPublish(ctx *context.Context, c client.Client) error {
|
|||||||
}
|
}
|
||||||
log.WithField("tag", ctx.Git.CurrentTag).
|
log.WithField("tag", ctx.Git.CurrentTag).
|
||||||
WithField("repo", ctx.Config.Release.GitHub.String()).
|
WithField("repo", ctx.Config.Release.GitHub.String()).
|
||||||
Info("creating or updating release")
|
Info("release")
|
||||||
body, err := describeBody(ctx)
|
body, err := describeBody(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -21,7 +21,7 @@ var ErrNoWindows = errors.New("scoop requires a windows build")
|
|||||||
type Pipe struct{}
|
type Pipe struct{}
|
||||||
|
|
||||||
func (Pipe) String() string {
|
func (Pipe) String() string {
|
||||||
return "creating scoop manifest"
|
return "scoop manifest"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Publish scoop manifest
|
// Publish scoop manifest
|
||||||
|
@ -133,7 +133,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
|
|||||||
}
|
}
|
||||||
|
|
||||||
var file = filepath.Join(primeDir, "meta", "snap.yaml")
|
var file = filepath.Join(primeDir, "meta", "snap.yaml")
|
||||||
log.WithField("file", file).Debug("creating snap metadata")
|
log.WithField("file", file).Debug("snap metadata")
|
||||||
|
|
||||||
var metadata = &Metadata{
|
var metadata = &Metadata{
|
||||||
Version: ctx.Version,
|
Version: ctx.Version,
|
||||||
@ -187,7 +187,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
|
|||||||
}
|
}
|
||||||
|
|
||||||
var snap = filepath.Join(ctx.Config.Dist, folder+".snap")
|
var snap = filepath.Join(ctx.Config.Dist, folder+".snap")
|
||||||
log.WithField("snap", snap).Info("creating")
|
log.WithField("snap", snap)
|
||||||
/* #nosec */
|
/* #nosec */
|
||||||
var cmd = exec.CommandContext(ctx, "snapcraft", "pack", primeDir, "--output", snap)
|
var cmd = exec.CommandContext(ctx, "snapcraft", "pack", primeDir, "--output", snap)
|
||||||
if out, err = cmd.CombinedOutput(); err != nil {
|
if out, err = cmd.CombinedOutput(); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user