Hugo on Bazzite

Hugo on Bazzite

Table of Contents

The issue


atulraj@bazzite:~/Desktop/atulyablog$ brew install hugo
==> Downloading https://ghcr.io/v2/homebrew/core/hugo/manifests/0.145.0
################################################################################################################# 100.0%
==> Fetching hugo
==> Downloading https://ghcr.io/v2/homebrew/core/hugo/blobs/sha256:53e47a734f65316b533d1bf1fde615a175b13fe13f74055cc33ba
################################################################################################################# 100.0%
==> Pouring hugo--0.145.0.x86_64_linux.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /home/linuxbrew/.linuxbrew
Could not symlink share/fish/vendor_completions.d/hugo.fish
/home/linuxbrew/.linuxbrew/share/fish/vendor_completions.d is not writable.

You can try again using:
  brew link hugo
==> Caveats
Bash completion has been installed to:
  /home/linuxbrew/.linuxbrew/etc/bash_completion.d
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/hugo/0.145.0: 53 files, 73.6MB
==> Running `brew cleanup hugo`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
atulraj@bazzite:~/Desktop/atulyablog$ brew link hugo
Linking /home/linuxbrew/.linuxbrew/Cellar/hugo/0.145.0... 
Error: Could not symlink share/fish/vendor_completions.d/hugo.fish
/home/linuxbrew/.linuxbrew/share/fish/vendor_completions.d is not writable.
atulraj@bazzite:~/Desktop/atulyablog$ 

Solution:

sudo chown -R $(whoami) /home/linuxbrew/.linuxbrew/share/fish/vendor_completions.d
brew link hugo

Issue 2:

npm run dev

> hugoplate@1.18.3 dev
> hugo server

Hugo provides its own webserver which builds and serves the site.
While hugo server is high performance, it is a webserver with limited options.

The `hugo server` command will by default write and serve files from disk, but
you can render to memory by using the `--renderToMemory` flag. This can be
faster in some cases, but it will consume more memory.

By default hugo will also watch your files for any changes you make and
automatically rebuild the site. It will then live reload any open browser pages
and push the latest content to them. As most Hugo sites are built in a fraction
of a second, you will be able to save and see your changes nearly instantly.

Usage:
  hugo server [command] [flags]
  hugo server [command]

Aliases:
  server, serve

Available Commands:
  trust       Install the local CA in the system trust store

Flags:
      --appendPort               append port to baseURL (default true)
  -b, --baseURL string           hostname (and path) to the root, e.g. https://spf13.com/
      --bind string              interface to which the server will bind (default "127.0.0.1")
  -D, --buildDrafts              include content marked as draft
  -E, --buildExpired             include expired content
  -F, --buildFuture              include content with publishdate in the future

Use "hugo server [command] --help" for more information about a command.

Error: command error: failed to load modules: failed to download modules: binary with name "go" not found in PATH

Seems like there is not go.

Solution:

installing go:

brew install go
Tags :