mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
wtfff
This commit is contained in:
parent
e4449c6c0b
commit
e0300e5d80
@ -6,6 +6,7 @@ import (
|
||||
"os"
|
||||
|
||||
yaml "gopkg.in/yaml.v1"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
var emptyBrew = HomebrewDeploy{}
|
||||
@ -36,12 +37,14 @@ func Load(file string) (config ProjectConfig, err error) {
|
||||
return config, err
|
||||
}
|
||||
err = yaml.Unmarshal(data, &config)
|
||||
fmt.Println("a",config.BinaryName)
|
||||
config = fix(config)
|
||||
fmt.Println("b",config.BinaryName)
|
||||
if config.BinaryName == "" {
|
||||
return config, errors.New("Missing binary_name")
|
||||
return config, errors.New("missing binary_name")
|
||||
}
|
||||
if config.Repo == "" {
|
||||
return config, errors.New("Missing repo")
|
||||
return config, errors.New("missing repo")
|
||||
}
|
||||
return config, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user