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:
mmetc 2024-09-12 17:26:39 +02:00 committed by GitHub
parent d5c587cf2b
commit cae76baa3a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 486 additions and 136 deletions

View file

@ -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