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:
parent
92b9d92bc8
commit
5ff07c38ea
@ -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{
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user