Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should not log watcher error when removing directories #9047

Closed
bep opened this issue Oct 16, 2021 · 1 comment
Closed

Should not log watcher error when removing directories #9047

bep opened this issue Oct 16, 2021 · 1 comment
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented Oct 16, 2021

Found while testing something else:

Error while watching: open /Users/bep/dev/go/gohugoio/hugoDocs/content/en/showcase/your-site2: no such file or directory
@bep bep self-assigned this Oct 16, 2021
@bep bep added the Bug label Oct 16, 2021
@bep bep added this to the v0.89 milestone Oct 16, 2021
bep added a commit to bep/hugo that referenced this issue Oct 16, 2021
The old implementation had some issues, mostly related to the context (e.g. name, file paths) passed to the template.

This new implementation is using the exact same code path for evaluating the pages as in a regular build.

This also makes it more robust and easier to reason about in a multilingual setup.

Now, if you are explicit about the target path, Hugo will now always pick the correct mount and language:

```bash
hugo new content/en/posts/my-first-post.md
```

Fixes gohugoio#9032
Fixes gohugoio#7589
Fixes gohugoio#9043
Fixes gohugoio#9046
Fixes gohugoio#9047
@bep bep closed this as completed in 9185e11 Oct 16, 2021
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant