mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 23:49:43 +00:00
add constructor for Builder
this makes it easier to track required dependencies as they change (todo: actually, like, use it for required dependencies)
This commit is contained in:
@@ -174,7 +174,7 @@ func run(path string) {
|
||||
|
||||
// loop through and create builders
|
||||
for _, b := range builds { //script.Builds {
|
||||
builder := build.Builder{}
|
||||
builder := build.New()
|
||||
builder.Build = b
|
||||
builder.Repo = &code
|
||||
builder.Key = key
|
||||
@@ -186,7 +186,7 @@ func run(path string) {
|
||||
builder.Stdout = &buf
|
||||
}
|
||||
|
||||
builders = append(builders, &builder)
|
||||
builders = append(builders, builder)
|
||||
}
|
||||
|
||||
switch *parallel {
|
||||
|
Reference in New Issue
Block a user