mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
refact acquisition: build profiles (optionally exclude datasources from final binary) (#3217)
example $ make BUILD_PROFILE=minimal or $ make EXCLUDE=datasource_s3,datasource_kinesis
This commit is contained in:
parent
d5c587cf2b
commit
cae76baa3a
29 changed files with 486 additions and 136 deletions
|
@ -73,9 +73,9 @@ func validateDataSource(opaqueDS DataSourceItem) error {
|
|||
|
||||
// source must be known
|
||||
|
||||
ds := acquisition.GetDataSourceIface(commonDS.Source)
|
||||
if ds == nil {
|
||||
return fmt.Errorf("unknown source '%s'", commonDS.Source)
|
||||
ds, err := acquisition.GetDataSourceIface(commonDS.Source)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
// unmarshal and validate the rest with the specific implementation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue