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

Better handling of the module.workspace config #10556

Closed
UtkarshVerma opened this issue Dec 19, 2022 · 1 comment
Closed

Better handling of the module.workspace config #10556

UtkarshVerma opened this issue Dec 19, 2022 · 1 comment
Assignees
Milestone

Comments

@UtkarshVerma
Copy link

The current state of workspaces in Hugo is:

  • module.workspace needs an absolute path
  • With workspace, Hugo was able to resolve nested modules in a private Hugo theme (added as a module). A good alternative to Module replacements not able to resolve nested modules #9494
  • Hugo perfectly builds the site in workspaces, however, it doesn't watch the directories from use directive in go.work for changes. For example, my use case was to debug a theme I'm working on. Hugo would not detect and rebuild the site if I made changes to the theme.

My go.work:

go 1.19

use ../../themes/hugo-yami

It would be really great if Hugo looks for the go.work file relative to the project. Additionally, having Hugo parse the go.work file to look out for use directives would be awesome. It would allow site rebuilds if any of the modules in the workspace got updated.

@bep bep self-assigned this Dec 19, 2022
@bep bep added this to the v0.109.0 milestone Dec 19, 2022
bep added a commit to bep/hugo that referenced this issue Dec 19, 2022
@bep bep closed this as completed in 6db5274 Dec 19, 2022
@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 10, 2023
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

2 participants