reaper47 / recipya

A clean, simple and powerful recipe manager your whole family will enjoy.
https://recipes.musicavis.ca
GNU General Public License v3.0
176 stars 11 forks source link

Building on WSL2 fails #415

Closed jubbs closed 1 month ago

jubbs commented 1 month ago

I am trying to build on WSL2 ubuntu 22.04.

Following instructions here https://recipes.musicavis.ca/guide/docs/development/intro/

I have all the dev dependencies

git clone --recurse-submodules https://github.com/reaper47/recipya.git cd recipya task build

Getting the following

`jubbs@DESKTOP-GTIE0A4:~/workspace/recipya$ task run task: [build] go generate ./... Total in 1 ms Error: Unable to locate config file or config directory. Perhaps you need to create a new site. Run hugo help new for details.

docs/website/build.go:4: running "hugo": exit status 255

up to date, audited 260 packages in 2s

51 packages are looking for funding run npm fund for details

31 high severity vulnerabilities

To address issues that do not require attention, run: npm audit fix

To address all issues (including breaking changes), run: npm audit fix --force

Run npm audit for details.

recipya@1.2.0 build npm run build:css && npm run build:mjml

recipya@1.2.0 build:css tailwind -m -i ../static/css/tailwind-custom.css --output ../static/css/tailwind.css

Rebuilding...

🌼 daisyUI 4.12.10 ├─ ✔︎ 2 themes added https://daisyui.com/docs/themes ╰─ ❤︎ Support daisyUI project: https://opencollective.com/daisyui

Done in 1385ms.

recipya@1.2.0 build:mjml mjml ../emails/error-admin.mjml -o ../emails/transpiled/error-admin.gohtml --config.minify && mjml ../emails/forgot-password.mjml -o ../emails/transpiled/forgot-password.gohtml --config.minify && mjml ../emails/intro.mjml -o ../emails/transpiled/intro.gohtml --config.minify

(✓) Format complete [ count=10 errors=0 duration=266.490267ms ] (✓) Complete [ updates=10 duration=229.091308ms ] exit status 1

WSL2 Win11 Ubuntu 22.04 LTS

reaper47 commented 1 month ago

I am not sure why hugo is failing. I will look into it on WSL2.

reaper47 commented 1 month ago

Have you installed the extended version of hugo? If not, you can remove hugo and run the following command:

CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
jubbs commented 1 month ago

Passes that error but I get Error: error building site: process: readAndProcessContent: "/home/jubbs/workspace/recipya/docs/website/content/fr/_index.md:7:1": failed to extract shortcode: template for shortcode "hextra/hero-headline" not found

I will try and track this down tomorow

jubbs commented 1 month ago

Whoops did not init submodules. All good now