From 1adaa7314172e6c8dfa239a328c5899d58a842cf Mon Sep 17 00:00:00 2001 From: Raymi306 Date: Mon, 8 Apr 2024 07:48:12 +0000 Subject: [PATCH] docs: fix build-from-sources docs mistake (#2251) While attempting to build on OpenBSD without having built the frontend, I ran into the following error: `frontend/embed.go:21:12: pattern dist: no matching files found` I saw in the docs to create a directory and touch a file, this resulted in a second error: `frontend/embed.go:21:12: pattern dist: cannot embed directory dist: contains no embeddable files` Creating the index.html file inside the new directory allowed me to build Vikunja Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2251 Co-authored-by: Raymi306 Co-committed-by: Raymi306 --- docs/content/doc/setup/build-from-source.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/doc/setup/build-from-source.md b/docs/content/doc/setup/build-from-source.md index 6bb81a19e..475ebadf0 100644 --- a/docs/content/doc/setup/build-from-source.md +++ b/docs/content/doc/setup/build-from-source.md @@ -35,7 +35,7 @@ That means compiling it boils down to these steps: 1. Make sure [Go](https://golang.org/doc/install) is properly installed on your system. You'll need at least Go `1.21`. 2. Make sure [Mage](https://magefile.org) is properly installed on your system. -3. If you did not build the frontend in the steps before, you need to either do that or create a dummy index file with `mkdir -p frontend/dist && touch index.html`. +3. If you did not build the frontend in the steps before, you need to either do that or create a dummy index file with `mkdir -p frontend/dist && touch frontend/dist/index.html`. 4. Run `mage build` in the source of the main repo. This will build a binary in the root of the repo which will be able to run on your system. ### Build for different architectures