未验证 提交 66206461 编写于 作者: C Christofer Dutz 提交者: GitHub

Fix/grafana plugin error (#11043)

* fix: Hopefully fixed the build of the cpp-example on windows systems

* refactor: Made the MQTT Message take Object instead of just String types.

* fix: Made the grafana-plugin build fail, if the ant tasks for compiling fail.
上级 b9ed1ed9
...@@ -26,7 +26,7 @@ work_path=$(pwd | sed 's/\"//g') ...@@ -26,7 +26,7 @@ work_path=$(pwd | sed 's/\"//g')
echo $work_path echo $work_path
go get -u github.com/grafana/grafana-plugin-sdk-go go get -u github.com/grafana/grafana-plugin-sdk-go
go mod tidy go mod tidy
check_results=$(go env | grep GOPATH= | sed 's/\"//g') check_results=$(go env | grep GOPATH= | sed 's/\"//g' | sed "s/\'//g")
go_path=${check_results/GOPATH=/} go_path=${check_results/GOPATH=/}
cd $go_path/pkg/mod/github.com/magefile/mage@v1.15.0 cd $go_path/pkg/mod/github.com/magefile/mage@v1.15.0
chmod 755 $go_path/pkg/mod/github.com/magefile/* chmod 755 $go_path/pkg/mod/github.com/magefile/*
......
...@@ -18,6 +18,6 @@ module github.com/grafana/grafana-starter-datasource-backend ...@@ -18,6 +18,6 @@ module github.com/grafana/grafana-starter-datasource-backend
go 1.16 go 1.16
require ( require (
github.com/grafana/grafana-plugin-sdk-go v0.172.0 github.com/grafana/grafana-plugin-sdk-go v0.174.0
github.com/magefile/mage v1.15.0 // indirect github.com/magefile/mage v1.15.0 // indirect
) )
...@@ -84,8 +84,9 @@ ...@@ -84,8 +84,9 @@
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<version>1.3</version> <version>1.8</version>
<executions> <executions>
<execution> <execution>
<id>test</id> <id>test</id>
...@@ -101,10 +102,10 @@ ...@@ -101,10 +102,10 @@
<condition property="osFamily" value="unix"> <condition property="osFamily" value="unix">
<os family="unix"/> <os family="unix"/>
</condition> </condition>
<exec executable="C:\\Windows\\System32\\cmd.exe" osfamily="windows"> <exec executable="C:\\Windows\\System32\\cmd.exe" osfamily="windows" failonerror="true">
<arg line="/c backend-compile.bat"/> <arg line="/c backend-compile.bat"/>
</exec> </exec>
<exec executable="/bin/bash" osfamily="unix"> <exec executable="/bin/bash" osfamily="unix" failonerror="true">
<arg line="-c ./backend-compile.sh"/> <arg line="-c ./backend-compile.sh"/>
</exec> </exec>
</tasks> </tasks>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册