3 ms·
Dockerfile would be a really good idea. Followed instructions to letter, got : main.go:7:5: no required module provides package github.com/jepson-io/maelstrom/
by yodelshady 4y ago
Dockerfile would be a really good idea.
Followed instructions to letter, got : main.go:7:5: no required module provides package github.com/jepson-io/maelstrom/demo/go $GOPATH is correctly set, I can see the package there, I've spent half an hour looking through incorrect internet answers and frankly I have better things to do than debug build scripts. Actually, no I don't. But I still normally get paid.
- deleted 4y ago[deleted]
- benbjohnson 4y agoI tried reproducing the error and I think I know what happened. There's an instruction to run "go mod tidy" in Go's "go mod init" command but that could be more clear in the instructions on our site. I'll update that. Thanks for letting me know.
- benbjohnson 4y agoI pushed up the "go mod tidy" instruction so hopefully that helps other folks that run across that issue in the future. Thanks again for catching that. As for Docker, that's probably a good idea for bundling Maestrom but it'd be tricky getting the Go dev environment bundled up in Docker as it utilizes several different build caches to make it fast on rebuilds. Mapping those onto Docker volumes or utilizing Docker's cache is going to be a different can of worms that probably wouldn't be any more enjoyable.
- rbjorklin 4y agoI've got a blog post for you: https://vsupalov.com/buildkit-cache-mount-dockerfile/ https://vsupalov.com/buildkit-cache-mount-dockerfile/