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

Hugo mod vendor does not copy hugo.toml #11221

Closed
markdumay opened this issue Jul 8, 2023 · 1 comment
Closed

Hugo mod vendor does not copy hugo.toml #11221

markdumay opened this issue Jul 8, 2023 · 1 comment
Assignees
Milestone

Comments

@markdumay
Copy link

markdumay commented Jul 8, 2023

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.115.1+extended darwin/arm64

Does this issue reproduce with the latest release?

Yes

Issue description

Hugo 0.110.0 changed the default config base filename to hugo, e.g. hugo.toml. However, hugo mod does not seem to pick up the new filename.

Expected behavior

hugo mod copies the file hugo.toml to the local module cache / vendor directory, similar to config.toml.

Steps to reproduce the error

A test site has been set up that references two modules:

From a local machine, run the following commands (note: tested on macOS, tree installed with brew)

git clone https://github.com/markdumay/hugo-mod-test-site.git
cd hugo-mod-test-site
hugo 
hugo mod vendor
tree _vendor

The _vendor directory includes a copy of config.toml, but hugo.toml is missing.

@bep bep removed the NeedsTriage label Jul 8, 2023
@bep bep self-assigned this Jul 8, 2023
@bep bep added this to the v0.116.0 milestone Jul 8, 2023
@bep bep changed the title Hugo mod does not copy hugo.toml Hugo mod vendor does not copy hugo.toml Jul 8, 2023
bep added a commit to bep/hugo that referenced this issue Jul 8, 2023
bep added a commit to bep/hugo that referenced this issue Jul 8, 2023
bep added a commit to bep/hugo that referenced this issue Jul 8, 2023
@bep bep closed this as completed in 0f921ac Jul 8, 2023
@bep bep modified the milestones: v0.116.0, v0.115.2 Jul 8, 2023
@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 Jul 30, 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