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

Running hugo without config file should throw error #11019

Closed
jmooring opened this issue May 25, 2023 · 2 comments
Closed

Running hugo without config file should throw error #11019

jmooring opened this issue May 25, 2023 · 2 comments

Comments

@jmooring
Copy link
Member

Change into an empty directory...

v0.111.3

$ hugo

Error: Unable to locate config file or config directory. Perhaps you need to create a new site.
       Run `hugo help new` for details.

It also creates a .hugo_build.lock file.

v0.112.3

$ hugo

hugo v0.112.3-ba6f74e40420d76f15fc8c2358be90f7aca98e0e+extended linux/amd64 BuildDate=2023-05-24T14:42:50Z VendorInfo=gohugoio
WARN 2023/05/24 17:37:09 found no layout file for "html" for kind "home": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/05/24 17:37:09 found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
WARN 2023/05/24 17:37:09 found no layout file for "html" for kind "taxonomy": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

It also generates the following:

./
├── public/
│   ├── categories/
│   │   └── index.xml
│   ├── tags/
│   │   └── index.xml
│   ├── index.xml
│   └── sitemap.xml
├── resources/
│   └── _gen/
│       ├── assets/
│       └── images/
└── .hugo_build.lock

@bep bep added this to the v0.112.4 milestone May 25, 2023
@bep
Copy link
Member

bep commented May 25, 2023

Thanks. I'm going to let these relatively minor things sit for a few days and just fix them all in one patch release.

This release was bound to create some waves/bugs with the massive amount of code changes. I probably got a little tired at the end there and just wanted to get it out the door. But after fixing these recent bugs in the commands package of Hugo I can say that it has become a pleasure to code in (esp. with the new testscripts setup). The previous version I think I was the only one who dared to make changes to ...

@bep bep removed the NeedsTriage label May 25, 2023
bep added a commit to bep/hugo that referenced this issue May 27, 2023
@bep bep closed this as completed in 273d9f6 May 27, 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 Jun 18, 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