hugo new blog/test/index.md
gives me this with
hugo v0.97.3-078053a43d746a26aa3d48cf1ec7122ae78a9bb4+extended darwin/amd64 BuildDate=2022-04-18T17:22:19Z VendorInfo=gohugoio
on macOS 12.4:
panic: mkdir /home/ck: operation not supported
goroutine 1 [running]:
github.com/gohugoio/hugo/hugofs.newFs({0x63700a0, 0x741e260}, {0x63700a0?, 0x741e260}, {0x6370630, 0xc0000a71d0})
/root/project/hugo/hugofs/fs.go:108 +0x4db
github.com/gohugoio/hugo/hugofs.NewFromSourceAndDestination(...)
/root/project/hugo/hugofs/fs.go:89
github.com/gohugoio/hugo/commands.(*commandeer).loadConfig.func3()
/root/project/hugo/commands/commandeer.go:399 +0x88
sync.(*Once).doSlow(0x6370630?, 0x5e37357?)
/usr/local/go/src/sync/once.go:68 +0xc2
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
github.com/gohugoio/hugo/commands.(*commandeer).loadConfig(0xc0006b6100)
/root/project/hugo/commands/commandeer.go:397 +0x9b9
github.com/gohugoio/hugo/commands.newCommandeer(0x1, 0x1, 0x0, 0xc000712620, {0x635aaa0?, 0xc00058ff80}, 0xc00000eb40, {0x0, 0x0, 0x0})
/root/project/hugo/commands/commandeer.go:208 +0x310
github.com/gohugoio/hugo/commands.initializeConfig(0x2d?, 0x0?, 0x0?, 0x2c?, {0x635aaa0?, 0xc00058ff80?}, 0x44d92a5?)
/root/project/hugo/commands/hugo.go:126 +0x31
github.com/gohugoio/hugo/commands.(*newCmd).newContent(0xc00058ff80, 0xc000523180, {0xc00042d350, 0x1, 0x0?})
/root/project/hugo/commands/new.go:74 +0xa5
github.com/spf13/cobra.(*Command).execute(0xc000523180, {0xc00042d320, 0x1, 0x1})
/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0xc000613400)
/go/pkg/mod/github.com/spf13/cobra@v1.4.0/command.go:974 +0x3b4
github.com/gohugoio/hugo/commands.Execute({0xc0000b60a0, 0x2, 0x2})
/root/project/hugo/commands/hugo.go:93 +0xb4
main.main()
/root/project/hugo/main.go:23 +0x57
The current directory is /Users/ck/develop/websites/unterwegs
. So what is /home/ck
even doing there (I’m on macOS which has no /home/
directory). Also, I have of course write permission in the current directory and it’s subdirectories.
I have an archetypes/blog.md
in my project’s root that looks innocent to me:
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
featured_image: ""
description: ""
destination: ["Europa"]
country: [""]
city: [""]
---
I’m sure that hugo new ...
worked at some time in the past, though. Searching in the forum lead me to
but that bug was apparently fixed some versions back.
Edit: In my config.toml
, I have
publishDir = "/home/ck ..."
but that should not concern hugo new
. Or should it?