You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-05 00:59:04 +02:00
fix: do not copy binary by default (#2916)
* fix: do not copy binary by default closes #2913 Signed-off-by: Carlos A Becker <caarlos0@gmail.com> * chore: ref Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
committed by
GitHub
parent
99547865e1
commit
d6813ce54d
@ -63,7 +63,7 @@ func TestSetupPipeline(t *testing.T) {
|
||||
t.Run("single-target and id", func(t *testing.T) {
|
||||
require.Equal(
|
||||
t,
|
||||
append(pipeline.BuildCmdPipeline, withOutputPipe{""}),
|
||||
pipeline.BuildCmdPipeline,
|
||||
setupPipeline(context.New(config.Project{}), buildOpts{
|
||||
singleTarget: true,
|
||||
id: "foo",
|
||||
@ -71,10 +71,22 @@ func TestSetupPipeline(t *testing.T) {
|
||||
)
|
||||
})
|
||||
|
||||
t.Run("single-target and id, given output", func(t *testing.T) {
|
||||
require.Equal(
|
||||
t,
|
||||
append(pipeline.BuildCmdPipeline, withOutputPipe{"foobar"}),
|
||||
setupPipeline(context.New(config.Project{}), buildOpts{
|
||||
singleTarget: true,
|
||||
id: "foo",
|
||||
output: ".",
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
||||
t.Run("single-target and single build on config", func(t *testing.T) {
|
||||
require.Equal(
|
||||
t,
|
||||
append(pipeline.BuildCmdPipeline, withOutputPipe{""}),
|
||||
pipeline.BuildCmdPipeline,
|
||||
setupPipeline(
|
||||
context.New(config.Project{
|
||||
Builds: []config.Build{{}},
|
||||
|
Reference in New Issue
Block a user