muesli / beehive

A flexible event/agent & automation system with lots of bees 🐝
GNU Affero General Public License v3.0
6.28k stars 319 forks source link

AppVeyor fails the compilation (ERROR @ Slack Bee) #210

Closed LorenzoAncora closed 5 years ago

LorenzoAncora commented 5 years ago

I see legitimate commits automatically marked as invalid by AppVeyor.

Exception:

go.exe : # github.com/muesli/beehive/bees/slackbee
At line:1 char:1
+ go.exe test -v -cpu=2 (go.exe list ./... `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (# github.com/mu...e/bees/slackbee:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

bees\slackbee\slackbee.go:69:39: cannot use text (type string) as type slack.MsgOption in argument to mod.client.PostMessage
bees\slackbee\slackbee.go:69:39: cannot use msgParams (type slack.PostMessageParameters) as type slack.MsgOption in argument to mod.client.PostMessage
[...]
Command executed with exception: bees\slackbee\slackbee.go:69:39: cannot use text (type string) as type slack.MsgOption in argument to mod.client.PostMessage
bees\slackbee\slackbee.go:69:39: cannot use msgParams (type slack.PostMessageParameters) as type slack.MsgOption in argument to mod.client.PostMessage

It would be appropriate to solve the problem: people have no reason to send code knowing that it will be marked as invalid irrespective of its actual correctness (especially if they do not want to have anything to do with Slack).

muesli commented 5 years ago

Fixed in master.