Merge pull request #172871 from waldheinz/prometheus-no-plugins

prometheus: fix build when all service discovery plugins are disabled
This commit is contained in:
Lassulus 2022-05-18 10:25:18 +02:00 committed by GitHub
commit f34acbd2b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ buildGoModule rec {
# Enable only select service discovery to shrink binaries.
(
true # prevent bash syntax error when all plugins are disabled
${lib.optionalString (enableAWS)
"echo - github.com/prometheus/prometheus/discovery/aws"}
${lib.optionalString (enableAzure)