!mautrix-slack-v9:maunium.net

Mautrix-Slack Bridge

202 Members
Discussion about mautrix-slack | Latest release: v0.2.1 | https://github.com/mautrix/slack119 Servers

Load older messages


SenderMessageTime
17 May 2023
@twouters:matrix.tcpdump.betwouters i just noticed that element uses :shortcode: for emoji but the colons are missing for bridged (custom) slack emoji 14:22:44
@twouters:matrix.tcpdump.betwouters * i just noticed that element uses :shortcode: for emoji but the colons are missing from the bridged (custom) slack emoji alt tag 14:23:00
@erebion:erebion.euerebion 🏳️‍🌈♾

Still can't figure out why compiling the bridge gives me

/opt/go/pkg/mod/go.mau.fi/zeroconfig@v0.1.2/config_unix.go:16:2: cannot find package

17:07:09
@erebion:erebion.euerebion 🏳️‍🌈♾

What I'm doing:

export GOPATH="/opt/go/" && ./build.sh

17:07:40
@tulir:maunium.nettulirwhy are you doing that 🤔17:07:54
@erebion:erebion.euerebion 🏳️‍🌈♾
#!/bin/sh
alias go=/opt/go/bin/go
go build -ldflags "-X main.Tag=$(git describe --exact-match --tags 2>/dev/null) -X main.Commit=$(git rev-parse HEAD) -X 'main.BuildTime=`date '+%b %_d %Y, %H:%M:%S'`'" "$@"

And I've added an alias to the binary in build.sh

17:08:29
@erebion:erebion.euerebion 🏳️‍🌈♾
In reply to @tulir:maunium.net
why are you doing that 🤔
Well, the necessary go version is not in Debian yet, so I got the binaries from the Go project itself.
17:09:00
@tulir:maunium.nettuliryou probably meant GOROOT, not GOPATH17:09:25
@erebion:erebion.euerebion 🏳️‍🌈♾
warning: GOPATH set to GOROOT (/opt/go/) has no effect
../go/pkg/mod/go.mau.fi/zeroconfig@v0.1.2/config_unix.go:16:2: cannot find package

same result except for the new warning

17:10:13
@tulir:maunium.nettulirGOPATH should usually be in your home directory or somewhere around there (defaults to ~/go if not set)17:10:42
@erebion:erebion.euerebion 🏳️‍🌈♾I've moved the binaries over there and still the same result17:11:30
@tulir:maunium.nettulirI mean GOROOT can be /opt/go, GOPATH is an entirely different thing unrelated to where the go toolchain is17:12:00
@tulir:maunium.nettulir maybe also check GOOS/GOARCH in go env 17:12:08
@tulir:maunium.nettulir * maybe also check GOOS/GOARCH (or GOHOSTOS/GOHOSTARCH) in go env 17:12:22
@erebion:erebion.euerebion 🏳️‍🌈♾
In reply to @tulir:maunium.net
maybe also check GOOS/GOARCH (or GOHOSTOS/GOHOSTARCH) in go env
seems correct
17:14:06
@erebion:erebion.euerebion 🏳️‍🌈♾(linux and amd64)17:14:13
@erebion:erebion.euerebion 🏳️‍🌈♾Also not sure what package is meant by "cannot find package"17:18:32
@erebion:erebion.euerebion 🏳️‍🌈♾
import (
        "io"
        "log/syslog"

        "github.com/rs/zerolog"
        "github.com/rs/zerolog/journald"
)

The 2nd line with GitHub is the one the error message talks about

17:19:25
@erebion:erebion.euerebion 🏳️‍🌈♾I just don't know what package is missing and how the error can be fixed.17:21:48
@stuartf:matrix.triangle.ninjastuartfthe missing package should be whatever line 16 of ../go/pkg/mod/go.mau.fi/zeroconfig@v0.1.2/config_unix.go references17:24:16
@erebion:erebion.euerebion 🏳️‍🌈♾And how do I make sure github.com/rs/zerolog/journald is no longer missing?17:24:40
@erebion:erebion.euerebion 🏳️‍🌈♾Do I need to clone the repo somewhere?17:24:52
@tulir:maunium.nettuliroh I guess that'd also happen if the go version is outdated17:37:19
@tulir:maunium.nettuliralthough not sure why it'd say line 16, it should fail to find the whole config_unix.go file 🤔17:37:47
@tulir:maunium.nettulirbuilds fine for me on go 1.19.9 and 1.20.4 so not sure what else it could be17:38:34
@erebion:erebion.euerebion 🏳️‍🌈♾
In reply to @tulir:maunium.net
builds fine for me on go 1.19.9 and 1.20.4 so not sure what else it could be
$ /opt/go/bin/go version
go version go1.19 linux/amd64

So this should be fine, right?

17:42:47
@tulir:maunium.nettulirprobably yes17:56:02
@github:maunium.netGitHub [mautrix/slack] tulir pushed 3 commits to main: 17:56:49
@erebion:erebion.euerebion 🏳️‍🌈♾
In reply to @tulir:maunium.net
probably yes
Huh, but why does it complain? 🤔
17:58:22
@erebion:erebion.euerebion 🏳️‍🌈♾I have this Ansible task which I had written and used to compile the bridge which means everything I did is completely reproducible: https://pad.dc7ia.eu/hedgedoc/756_cfT5TAanRaros9KGMQ?view18:00:25

Show newer messages


Back to Room ListRoom Version: 9