Only compile the sensors plugin if the 'sensors' tag is set
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// +build linux
|
||||
// +build linux,sensors
|
||||
|
||||
package sensors
|
||||
|
||||
|
||||
3
plugins/inputs/sensors/sensors_nocompile.go
Normal file
3
plugins/inputs/sensors/sensors_nocompile.go
Normal file
@@ -0,0 +1,3 @@
|
||||
// +build !linux !sensors
|
||||
|
||||
package sensors
|
||||
@@ -1,3 +0,0 @@
|
||||
// +build !linux
|
||||
|
||||
package sensors
|
||||
Reference in New Issue
Block a user