Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 7eaf31a7aa065345f026faaf823b800bd09c3bf6 Author: Wim <wim@42.be> Date: Sun Mar 08 17:08:18 2020 +0000 Remove replace directives and use own fork to make go get work again (#1028) See https://github.com/golang/go/issues/30354 go get doesn't honor the go.mod replace options. diff --git a/bridge/discord/discord.go b/bridge/discord/discord.go index e37208b..c081791 100644 --- a/bridge/discord/discord.go +++ b/bridge/discord/discord.go @@ -107 +107 @@ import (   "github.com/42wim/matterbridge/bridge"   "github.com/42wim/matterbridge/bridge/config"   "github.com/42wim/matterbridge/bridge/helper" - "github.com/bwmarrin/discordgo" + "github.com/matterbridge/discordgo"  )    const MessageLength = 1950 diff --git a/bridge/discord/handlers.go b/bridge/discord/handlers.go index ab32097..2527c0d 100644 --- a/bridge/discord/handlers.go +++ b/bridge/discord/handlers.go @@ -27 +27 @@ package bdiscord    import (   "github.com/42wim/matterbridge/bridge/config" - "github.com/bwmarrin/discordgo" + "github.com/matterbridge/discordgo"  )    func (b *Bdiscord) messageDelete(s *discordgo.Session, m *discordgo.MessageDelete) { //nolint:unparam diff --git a/bridge/discord/helpers.go b/bridge/discord/helpers.go index 7ea0a36..8bc4f33 100644 --- a/bridge/discord/helpers.go +++ b/bridge/discord/helpers.go @@ -67 +67 @@ import (   "strings"   "unicode"   - "github.com/bwmarrin/discordgo" + "github.com/matterbridge/discordgo"  )    func (b *Bdiscord) getNick(user *discordgo.User, guildID string) string { diff --git a/bridge/msteams/handler.go b/bridge/msteams/handler.go index c8f0c46..394a9ac 100644 --- a/bridge/msteams/handler.go +++ b/bridge/msteams/handler.go @@ -97 +97 @@ import (   "github.com/42wim/matterbridge/bridge/config"   "github.com/42wim/matterbridge/bridge/helper"   - msgraph "github.com/yaegashi/msgraph.go/beta" + msgraph "github.com/matterbridge/msgraph.go/beta"  )    func (b *Bmsteams) findFile(weburl string) (string, error) { diff --git a/bridge/msteams/msteams.go b/bridge/msteams/msteams.go index 3633924..b096cb0 100644 --- a/bridge/msteams/msteams.go +++ b/bridge/msteams/msteams.go @@ -129 +129 @@ import (   "github.com/42wim/matterbridge/bridge/config"     // "github.com/davecgh/go-spew/spew" + msgraph "github.com/matterbridge/msgraph.go/beta" + "github.com/matterbridge/msgraph.go/msauth"   "github.com/mattn/godown" - msgraph "github.com/yaegashi/msgraph.go/beta" - "github.com/yaegashi/msgraph.go/msauth"     "golang.org/x/oauth2"  ) diff --git a/go.mod b/go.mod index bb1b69a..fcab0c0 100644 --- a/go.mod +++ b/go.mod @@ -67 +66 @@ require (   github.com/Jeffail/gabs v1.1.1 // indirect   github.com/Philipp15b/go-steam v1.0.1-0.20190816133340-b04c5a83c1c0   github.com/Rhymen/go-whatsapp v0.1.0 - github.com/bwmarrin/discordgo v0.20.2   github.com/d5/tengo/v2 v2.0.2   github.com/dfordsoft/golib v0.0.0-20180902042739-76ee6ab99bec   github.com/fsnotify/fsnotify v1.4.7 @@ -2311 +2213 @@ require (   github.com/labstack/echo/v4 v4.1.13   github.com/lrstanley/girc v0.0.0-20190801035559-4fc93959e1a7   github.com/matterbridge/Rocket.Chat.Go.SDK v0.0.0-20190210153444-cc9d05784d5d + github.com/matterbridge/discordgo v0.18.1-0.20200308151012-aa40f01cbcc3   github.com/matterbridge/emoji v2.1.1-0.20191117213217-af507f6b02db+incompatible   github.com/matterbridge/go-xmpp v0.0.0-20180529212104-cd19799fba91   github.com/matterbridge/gomatrix v0.0.0-20200209224845-c2104d7936a6   github.com/matterbridge/gozulipbot v0.0.0-20190212232658-7aa251978a18   github.com/matterbridge/logrus-prefixed-formatter v0.0.0-20180806162718-01618749af61 + github.com/matterbridge/msgraph.go v0.0.0-20200308150230-9e043fe9dbaa   github.com/mattermost/mattermost-server v5.5.0+incompatible   github.com/mattn/go-runewidth v0.0.7 // indirect   github.com/mattn/godown v0.0.0-20180312012330-2e9e17e0ea51 @@ -507 +516 @@ require (   github.com/stretchr/testify v1.4.0   github.com/technoweenie/multipartstreamer v1.0.1 // indirect   github.com/x-cray/logrus-prefixed-formatter v0.5.2 // indirect - github.com/yaegashi/msgraph.go v0.0.0-00010101000000-000000000000   github.com/zfjagann/golang-ring v0.0.0-20190106091943-a88bb6aef447   golang.org/x/image v0.0.0-20191214001246-9130b4cfad52   golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 @@ -598 +598 @@ require (   gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect  )   -replace github.com/bwmarrin/discordgo v0.20.2 => github.com/matterbridge/discordgo v0.18.1-0.20200109173909-ed873362fa43 +//replace github.com/bwmarrin/discordgo v0.20.2 => github.com/matterbridge/discordgo v0.18.1-0.20200109173909-ed873362fa43   -replace github.com/yaegashi/msgraph.go => github.com/matterbridge/msgraph.go v0.0.0-20191226214848-9e5d9c08a4e1 +//replace github.com/yaegashi/msgraph.go => github.com/matterbridge/msgraph.go v0.0.0-20191226214848-9e5d9c08a4e1    go 1.13 diff --git a/go.sum b/go.sum index 58fe341..30fc7d4 100644 --- a/go.sum +++ b/go.sum @@ -1258 +1258 @@ github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzR  github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=  github.com/matterbridge/Rocket.Chat.Go.SDK v0.0.0-20190210153444-cc9d05784d5d h1:F+Sr+C0ojSlYQ37BLylQtSFmyQULe3jbAygcyXQ9mVs=  github.com/matterbridge/Rocket.Chat.Go.SDK v0.0.0-20190210153444-cc9d05784d5d/go.mod h1:c6MxwqHD+0HvtAJjsHMIdPCiAwGiQwPRPTp69ACMg8A= -github.com/matterbridge/discordgo v0.18.1-0.20200109173909-ed873362fa43 h1:xTcLiEPMp9jVh/lHEPpLc87RZ4sRWRZe0rM578/waOk= -github.com/matterbridge/discordgo v0.18.1-0.20200109173909-ed873362fa43/go.mod h1:O9S4p+ofTFwB02em7jkpkV8M3R0/PUVOwN61zSZ0r4Q= +github.com/matterbridge/discordgo v0.18.1-0.20200308151012-aa40f01cbcc3 h1:VP/DNRn2HtrVRN6+X3h4FDcQI2OOKT+88WUi21ZD1Kw= +github.com/matterbridge/discordgo v0.18.1-0.20200308151012-aa40f01cbcc3/go.mod h1:5a1bHtG/38ofcx9cgwM5eTW/Pl4SpbQksNDnTRcGA2Y=  github.com/matterbridge/emoji v2.1.1-0.20191117213217-af507f6b02db+incompatible h1:oaOqwbg5HxHRxvAbd84ks0Okwoc1ISyUZ87EiVJFhGI=  github.com/matterbridge/emoji v2.1.1-0.20191117213217-af507f6b02db+incompatible/go.mod h1:igE6rUAn3jai2wCdsjFHfhUoekjrFthoEjFObKKwSb4=  github.com/matterbridge/go-xmpp v0.0.0-20180529212104-cd19799fba91 h1:KzDEcy8eDbTx881giW8a6llsAck3e2bJvMyKvh1IK+k= @@ -1378 +1378 @@ github.com/matterbridge/gozulipbot v0.0.0-20190212232658-7aa251978a18 h1:fLhwXtW  github.com/matterbridge/gozulipbot v0.0.0-20190212232658-7aa251978a18/go.mod h1:yAjnZ34DuDyPHMPHHjOsTk/FefW4JJjoMMCGt/8uuQA=  github.com/matterbridge/logrus-prefixed-formatter v0.0.0-20180806162718-01618749af61 h1:R/MgM/eUyRBQx2FiH6JVmXck8PaAuKfe2M1tWIzW7nE=  github.com/matterbridge/logrus-prefixed-formatter v0.0.0-20180806162718-01618749af61/go.mod h1:iXGEotOvwI1R1SjLxRc+BF5rUORTMtE0iMZBT2lxqAU= -github.com/matterbridge/msgraph.go v0.0.0-20191226214848-9e5d9c08a4e1 h1:Yzi9wh9al/7R84U+TETBdNW1XkE/Nbvz7RFPN4y2o2o= -github.com/matterbridge/msgraph.go v0.0.0-20191226214848-9e5d9c08a4e1/go.mod h1:l0kx9L8Z+NbBCGrQ/y+ldKZ/fiwBZjPoXwDS55LTumI= +github.com/matterbridge/msgraph.go v0.0.0-20200308150230-9e043fe9dbaa h1:ZP87nK5Mhgvt6Rpgbztdmq9+6cb3aZ6MgW/JWKbnMrI= +github.com/matterbridge/msgraph.go v0.0.0-20200308150230-9e043fe9dbaa/go.mod h1:l0kx9L8Z+NbBCGrQ/y+ldKZ/fiwBZjPoXwDS55LTumI=  github.com/mattermost/mattermost-server v5.5.0+incompatible h1:0wcLGgYtd+YImtLDPf2AOfpBHxbU4suATx+6XKw1XbU=  github.com/mattermost/mattermost-server v5.5.0+incompatible/go.mod h1:5L6MjAec+XXQwMIt791Ganu45GKsSiM+I0tLR9wUj8Y=  github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=