kentonv changed the topic of #sandstorm to: Welcome to #sandstorm: home of all things sandstorm.io. Say hi! | Have a question but no one is here? Try asking in the discussion group: https://groups.google.com/group/sandstorm-dev
<abliss>
with messages like `go: finding module for package gvisor.dev/gvisor/pkg/sentry/arch/registers_go_proto ../../tools/go/pkg/mod/gvisor.dev/gvisor@v0.0.0-20200527224730-26bbecf00f51/pkg/eventchannel/event.go:29:2: module gvisor.dev/gvisor@latest found (v0.0.0-20200527224\730-26bbecf00f51), but does not contain package gvisor.dev/gvisor/pkg/eventchannel/eventchannel_go_proto`
<isd>
Ah, yeah, if you're not using their bazel build you'll probably have to invoke protoc yourself.
<abliss>
i've checked out the 'go' branch which supposedly works with go tooling instead of bazel
<isd>
Is the stuff in your repo still representative of the build?
<abliss>
no, i haven't pushed anything that actually uses the gvisor code yet, because i haven't been able to get it to work
<isd>
I would do a go mod init github.com/abliss/upty and then add a replace directive.
<abliss>
if i go into the gvisor code, i can build the parts i want with `go build ./pkg/sentry/fsimpl/devpts`
<abliss>
but after doing that go mod init in the outer directory, `go mod vendor` dies because of missing protobuf stuff, and everything else dies telling me to run `go mod vendor`
<isd>
It would be helpful to see what your current tree looks like. Can you push the broken stuff to a branch so I can see it?
<abliss>
pushed to branch gohack
<isd>
Also, you could cut out a lot of the boilerplate by using net.Pipe() and io.Copy() instead of your custom relay* functions.
<abliss>
oh yeah those are just stubs that will go away, don't worry
<abliss>
i tried adding a replace stanza to go.mod. now, `go mod vendor` deletes the vendored code (?!) and then complains that it's missing.
<abliss>
ah, i guess the trick is to not manually populate vendor/ but rather let `go mod vendor` do it. wish the docs had told me that.
<abliss>
ok, it works now, you can stop looking at my ugly hacks :)
<isd>
You can also just update the commit & timestamp in the require clause and get rid of vendor/ entirely.
<abliss>
yeah, i was just trying that. seems to work. thanks.
<isd>
no problem
rjBadger[m] has quit [Ping timeout: 246 seconds]
rjBadger[m] has joined #sandstorm
sy has quit [Ping timeout: 240 seconds]
sy has joined #sandstorm
frigginglorious has quit [Read error: Connection reset by peer]
frigginglorious has joined #sandstorm
frigginglorious has quit [Read error: Connection reset by peer]
frigginglorious has joined #sandstorm
CcxWrk has quit [Ping timeout: 256 seconds]
frigginglorious has quit [Ping timeout: 246 seconds]
vertigo_38 has joined #sandstorm
vertigo_38 has quit [Ping timeout: 265 seconds]
wings has quit [Ping timeout: 260 seconds]
CcxWrk has joined #sandstorm
vertigo_38 has joined #sandstorm
kawaiipunk has quit [Quit: Leaving this Club]
kawaiipunk has joined #sandstorm
<xet7>
abliss: Are you a Go programmer? Can you submit pull request that makes this code to build correctly? https://github.com/kanlab/kanlab
<xet7>
abliss: I tried to make it build, but failed
<xet7>
I'm just thinking, is coding with Go even possible? My Go code usually just crashes and I can't get those working.
<abliss>
i'm not really. i was kinda able to build stuff back in the 1.0 days, but i don't understand any of the new module stuff. Ian Denhardt seems much more capable. what error are you seeing?
<xet7>
That's why I think Meteor is best think in the world since sliced bread :D
<xet7>
It was maybe about paths or other dependencies
<abliss>
ugh, i really dislike docker-only-build projects...
<abliss>
trying to hcak a build outside docker, and it complains about a cyclic import (kanban -> cmd -> kanban)
<abliss>
s/kanban/kanlab/g
frigginglorious has joined #sandstorm
frigginglorious1 has joined #sandstorm
frigginglorious has quit [Ping timeout: 256 seconds]
frigginglorious1 is now known as frigginglorious
<isd>
xet7: what's the failure you're seeing now?
<xet7>
isd: I'll try building it to see it. I'll also check has there been any fixes to the upstream project that was already broken.
strugee has quit [Ping timeout: 256 seconds]
strugee has joined #sandstorm
<isd>
Observation: there's a go.mod file in the repo, but the Makefile is invoking an ancient version of go that predates go modules.