# I am the Watcher. I am your guide through this vast new twtiverse.
#
# Usage:
# https://watcher.sour.is/api/plain/users View list of users and latest twt date.
# https://watcher.sour.is/api/plain/twt View all twts.
# https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri.
# https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject.
#
# Options:
# uri Filter to show a specific users twts.
# offset Start index for quey.
# limit Count of items to return (going back in time).
#
# twt range = 1 11
# self = https://watcher.sour.is/conv/nfaewca
Meh, after a server upgrade and reboot a bunch of my Python scripts don't work anymore. I know of at least two.
Finally, everything seems to be fixed now.
@lyse Oh man that sucks 🤦♂️ But glad you got it sorted a few hours later by the looks 😆
One of the reasons I like Go so much 🤣 Portability guarantees 🥳
@lyse Oh man that sucks 🤦♂️ But glad you got it sorted a few hours later by the looks 😆
One of the reasons I like Go so much 🤣 Portability guarantees 🥳
@prologic Yeah, but it only works for truly statically linked executables. Two weeks ago I had the problem that I build a simple service with the regular go build -o myservice
and copied it to my server. It didn't start though, the libc versions didn't line up. So then I had to search around and use go build -o myservice -tags netgo -ldflags '-extldflags "-static"'
. (Generally even more flags are required.) And the best part is that the exact command line differs with each Go version. I hope they finally provide a simple -static
flag.
@lyse Isn't it generally enough to just set CGO_ENABLED=0
before you run go build
? I haven't tried lately, but I _think_ they have improved this somewhat over the years... Need to test this 🤔
@lyse Isn't it generally enough to just set CGO_ENABLED=0
before you run go build
? I haven't tried lately, but I _think_ they have improved this somewhat over the years... Need to test this 🤔
@prologic Hmm, I don't use cgo in said project, so I would be surprised if that then has an effect. I will try that next time, though.
@prologic Oh boy, this is interesting, it works indeed! Thanks mate! Now I just have to read up on why that is the case.