mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
fix define build config checking
This commit is contained in:
parent
2da5fa2e92
commit
d0fc161ae7
|
@ -223,15 +223,13 @@ func Load(configFile string, loadStrategies bool) (*Config, error) {
|
||||||
|
|
||||||
// for backward compatible
|
// for backward compatible
|
||||||
if config.Build == nil {
|
if config.Build == nil {
|
||||||
if len(config.Imports) > 0 {
|
config.Build = &BuildConfig{
|
||||||
config.Build = &BuildConfig{
|
BuildDir: "build",
|
||||||
BuildDir: "build",
|
Imports: config.Imports,
|
||||||
Imports: config.Imports,
|
Targets: []BuildTargetConfig{
|
||||||
Targets: []BuildTargetConfig{
|
{Name: "bbgow-amd64-darwin", Arch: "amd64", OS: "darwin"},
|
||||||
{Name: "bbgow-amd64-darwin", Arch: "amd64", OS: "darwin"},
|
{Name: "bbgow-amd64-linux", Arch: "amd64", OS: "linux"},
|
||||||
{Name: "bbgow-amd64-linux", Arch: "amd64", OS: "linux"},
|
},
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user