Convert to go mod

This commit is contained in:
2019-10-08 22:28:45 +01:00
parent ce5ef6edeb
commit 90b5b3c140
1168 changed files with 52 additions and 853237 deletions

View File

@@ -19,19 +19,19 @@ installed on your system:
```
$ go version
go version go1.10 linux/amd64
go version go1.13 linux/amd64
```
In addition, you'll also need the following packages installed, at least in
Debian:
```
apt-get install libx11-dev libxcursor-dev mesa-common-dev libxrandr-dev \
libxinerama-dev libgl1-mesa-dev libxi-dev
# apt install libx11-dev libxcursor-dev mesa-common-dev libxrandr-dev \
libxinerama-dev libgl1-mesa-dev libxi-dev mpv
```
Clone the source tree to `$GOPATH/src/ur.gs/ordoor`. You can then run
`make all` to get the binaries that exist at present.
You can then run `make all` in the source tree to get the binaries that are
present at hte moment.
They're not very interesting :D.
@@ -67,10 +67,17 @@ Looks like this:
Use the arrow keys to scroll around the map, the mouse wheel to zoom, and the
`1` - `7` keys to change Z level.
Dependency management uses `govendor`. Unless you're contributing code you
shouldn't have to worry about it.
Dependency management uses `go mod`, so ensure you have at least Go 1.11.
`dep` bug https://github.com/golang/dep/issues/1725 means I can't use it.
There is the **start** of the menu / campaign flow in a `wh40k` binary:
```
$ make wh40k
$ ./wh40k
```
This plays the introductory video so far, and nothing else. I'm hopeful I can
render the main menu next.
## Miscellany