17 May 2023 |
twouters | i just noticed that element uses :shortcode: for emoji but the colons are missing for bridged (custom) slack emoji | 14:22:44 |
twouters | * 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 🏳️🌈♾ | 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 🏳️🌈♾ | What I'm doing:
export GOPATH="/opt/go/" && ./build.sh
| 17:07:40 |
tulir | why are you doing that 🤔 | 17:07:54 |
erebion 🏳️🌈♾ | #!/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 🏳️🌈♾ | 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 | you probably meant GOROOT, not GOPATH | 17:09:25 |
erebion 🏳️🌈♾ | 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 | GOPATH should usually be in your home directory or somewhere around there (defaults to ~/go if not set) | 17:10:42 |
erebion 🏳️🌈♾ | I've moved the binaries over there and still the same result | 17:11:30 |
tulir | I mean GOROOT can be /opt/go, GOPATH is an entirely different thing unrelated to where the go toolchain is | 17:12:00 |
tulir | maybe also check GOOS/GOARCH in go env | 17:12:08 |
tulir | * maybe also check GOOS/GOARCH (or GOHOSTOS/GOHOSTARCH) in go env | 17:12:22 |
erebion 🏳️🌈♾ | In reply to @tulir:maunium.net maybe also check GOOS/GOARCH (or GOHOSTOS/GOHOSTARCH) in go env seems correct | 17:14:06 |
erebion 🏳️🌈♾ | (linux and amd64) | 17:14:13 |
erebion 🏳️🌈♾ | Also not sure what package is meant by "cannot find package" | 17:18:32 |
erebion 🏳️🌈♾ | 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 🏳️🌈♾ | I just don't know what package is missing and how the error can be fixed. | 17:21:48 |
stuartf | the missing package should be whatever line 16 of ../go/pkg/mod/go.mau.fi/zeroconfig@v0.1.2/config_unix.go references | 17:24:16 |
erebion 🏳️🌈♾ | And how do I make sure github.com/rs/zerolog/journald is no longer missing? | 17:24:40 |
erebion 🏳️🌈♾ | Do I need to clone the repo somewhere? | 17:24:52 |
tulir | oh I guess that'd also happen if the go version is outdated | 17:37:19 |
tulir | although not sure why it'd say line 16, it should fail to find the whole config_unix.go file 🤔 | 17:37:47 |
tulir | builds fine for me on go 1.19.9 and 1.20.4 so not sure what else it could be | 17:38:34 |
erebion 🏳️🌈♾ | 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 | probably yes | 17:56:02 |
GitHub | [mautrix/slack] tulir pushed
3 commits
to
main: | 17:56:49 |
erebion 🏳️🌈♾ | In reply to @tulir:maunium.net probably yes Huh, but why does it complain? 🤔 | 17:58:22 |
erebion 🏳️🌈♾ | 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?view | 18:00:25 |