From ca2e3c4a19173bb3b8e14c4a5fd5af9628bd0fef Mon Sep 17 00:00:00 2001 From: mappu Date: Tue, 3 Sep 2024 18:24:57 +1200 Subject: [PATCH] doc/README: update instructions for container build cache --- .gitignore | 3 +++ README.md | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c56e5f0f..8335ee16 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ # scratch files *.json +# docker files +container-build-cache/ + # binaries cmd/handbindings/handbindings cmd/handbindings/bindings_test/direct diff --git a/README.md b/README.md index 436de87e..2b00c3e7 100644 --- a/README.md +++ b/README.md @@ -78,4 +78,4 @@ Some C++ idioms that were difficult to project were omitted from the binding. Bu 2. Build your application: - `docker run --rm -v $(pwd):/src -w /src miqt/win64-cross:latest go build -buildvcs=false -ldflags '-s -w -H windowsgui'` -For repeated builds, the compile speed can be improved if you also bind-mount the Docker container's `GOCACHE` directory: `-v ./container-build-cache:/root/.cache/go-build` +For repeated builds, the compile speed can be improved if you also bind-mount the Docker container's `GOCACHE` directory: `-v $(pwd)/container-build-cache:/root/.cache/go-build`