@@ -153,7 +153,7 @@ func Test_getBuildBackendCmdInfo(t *testing.T) {
153153 Env : map [string ]string {"CGO_ENABLED" : "0" , "GOARCH" : "arm64" , "GOOS" : "darwin" },
154154 PluginJSONPath : filepath .Join (tmpDir , "foobar-datasource" ),
155155 },
156- expectedArgs : []string {"build" , "-o" , filepath .Join (defaultOutputBinaryPath , "gpx_foo_darwin_arm64" ), "-tags" , "arrow_json_stdlib" , "-ldflags" , "-w -s -extldflags \" -static\" -X 'github.com/grafana/grafana-plugin-sdk-go/build/info .buildInfoJSON={.*}'" , "./pkg" },
156+ expectedArgs : []string {"build" , "-o" , filepath .Join (defaultOutputBinaryPath , "gpx_foo_darwin_arm64" ), "-tags" , "arrow_json_stdlib" , "-ldflags" , "-w -s -extldflags \" -static\" -X 'github.com/grafana/grafana-plugin-sdk-go/build/buildinfo .buildInfoJSON={.*}'" , "./pkg" },
157157 wantErr : assert .NoError ,
158158 },
159159 {
@@ -174,7 +174,7 @@ func Test_getBuildBackendCmdInfo(t *testing.T) {
174174 Env : map [string ]string {"CGO_ENABLED" : "0" , "GOARCH" : "arm64" , "GOOS" : "darwin" },
175175 PluginJSONPath : filepath .Join (tmpDir , "foobar-app" ),
176176 },
177- expectedArgs : []string {"build" , "-o" , filepath .Join (defaultOutputBinaryPath , defaultNestedDataSourcePath , "gpx_foo_darwin_arm64" ), "-tags" , "arrow_json_stdlib" , "-ldflags" , "-w -s -extldflags \" -static\" -X 'github.com/grafana/grafana-plugin-sdk-go/build/info .buildInfoJSON={.*}'" , "./pkg" },
177+ expectedArgs : []string {"build" , "-o" , filepath .Join (defaultOutputBinaryPath , defaultNestedDataSourcePath , "gpx_foo_darwin_arm64" ), "-tags" , "arrow_json_stdlib" , "-ldflags" , "-w -s -extldflags \" -static\" -X 'github.com/grafana/grafana-plugin-sdk-go/build/buildinfo .buildInfoJSON={.*}'" , "./pkg" },
178178 wantErr : assert .NoError ,
179179 },
180180 {
@@ -195,7 +195,7 @@ func Test_getBuildBackendCmdInfo(t *testing.T) {
195195 Env : map [string ]string {"CGO_ENABLED" : "0" , "GOARCH" : "amd64" , "GOOS" : "windows" },
196196 PluginJSONPath : filepath .Join (tmpDir , "foobarbaz-app" ),
197197 },
198- expectedArgs : []string {"build" , "-o" , filepath .Join (defaultOutputBinaryPath , "gpx_foobarbaz_windows_amd64.exe" ), "-tags" , "arrow_json_stdlib" , "-ldflags" , "-w -s -extldflags \" -static\" -X 'github.com/grafana/grafana-plugin-sdk-go/build/info .buildInfoJSON={.*}'" , "./pkg" },
198+ expectedArgs : []string {"build" , "-o" , filepath .Join (defaultOutputBinaryPath , "gpx_foobarbaz_windows_amd64.exe" ), "-tags" , "arrow_json_stdlib" , "-ldflags" , "-w -s -extldflags \" -static\" -X 'github.com/grafana/grafana-plugin-sdk-go/build/buildinfo .buildInfoJSON={.*}'" , "./pkg" },
199199 wantErr : assert .NoError ,
200200 },
201201 }
0 commit comments