chrishrb / go-grip

MIT License
10 stars 0 forks source link

Binary package missing templates folder #1

Closed Disonantemus closed 3 weeks ago

Disonantemus commented 3 weeks ago

Downloading and testing Last release, shows error and exit:

./go-grip
🚀 Starting server: http://localhost:80/README.md
2024/10/30 08:11:32 open templates/layout.html: no such file or directory

Same happens when is installed using README.md:

go install github.com/chrishrb/go-grip@latest

Workaround

Cloning the repo to get templates folder, fixed the problem, but is cumbersome, because needs to be in same folder as markdown file to show. I think that folder should be included in the tarball or better inside the binary, or installed in ~/.config.


Machine:

distro: Arch Linux x86_64
kernel: 6.6.52-1-lts
shell: bash 5.2.37
term: tmux
chrishrb commented 3 weeks ago

Thanks for noticing it! Should be resolved now in #2.