1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-19 20:57:53 +02:00

fix: cleaning up

This commit is contained in:
Carlos Alexandro Becker 2017-12-17 22:12:25 -02:00
parent 92b9d92bc8
commit 5ff07c38ea
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 2 additions and 18 deletions

View File

@ -122,20 +122,6 @@ func TestCreateFileDoesntExist(t *testing.T) {
assert.Error(t, Pipe{}.Run(ctx))
}
// TODO: wtf?
func TestRunPipeWithExtraFiles(t *testing.T) {
var ctx = &context.Context{
Version: "1.0.0",
Parallelism: runtime.NumCPU(),
Config: config.Project{
FPM: config.FPM{
Formats: []string{"deb", "rpm"},
},
},
}
assert.NoError(t, Pipe{}.Run(ctx))
}
func TestDefault(t *testing.T) {
var ctx = &context.Context{
Config: config.Project{

View File

@ -78,8 +78,7 @@ func (Pipe) Run(ctx *context.Context) error {
artifact.ByType(artifact.Binary),
),
).GroupByPlatform() {
// TODO: could use artifact.goarch here
arch := linux.Arch(platform)
arch := linux.Arch(platform) // TODO: could use artifact.goarch here
binaries := binaries
g.Go(func() error {
return create(ctx, arch, binaries)
@ -90,8 +89,7 @@ func (Pipe) Run(ctx *context.Context) error {
func create(ctx *context.Context, arch string, binaries []artifact.Artifact) error {
var log = log.WithField("arch", arch)
// TODO: should add template support here probably... for now, let's use
// archive's template
// TODO: should add template support here probably... for now, let's use archive's template
folder, err := nametemplate.Apply(ctx, binaries[0], ctx.Config.ProjectName)
if err != nil {
return err