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

'TODO' in file name causes error when generating files #6249

Closed
cobratbq opened this issue Aug 19, 2019 · 2 comments

Comments

@cobratbq
Copy link

commented Aug 19, 2019

The word 'TODO' in the file name causes generation to fail with an error. The error itself is rather obscure, as I believe it does not demonstrate the actual error that is reported.

➜  site git:(master) ✗ hugo version
Hugo Static Site Generator v0.57.2-A849CB2D linux/amd64 BuildDate: 2019-08-17T17:54:13Z
➜  site git:(master) ✗ hugo
Total in 102 ms
Error: Error building site: no Path provided by map[classifier:zcontent filename:/home/user/dev/site/content/TODO.md fs:0xc000473380 isOrdered:false lang:en mountWeight:2 name:TODO.md opener:0xb54480 ordinal:0 path:TODO.md pathWalk:TODO.md translationBaseName:TODO translationBaseNameWithExt:TODO.md translations:[en] watch:true weight:0] (*hugofs.RootMappingFs)
➜  site git:(master) ✗ git mv content/TODO.md content/TO-DO.md
➜  site git:(master) ✗ hugo

                   | EN   
+------------------+-----+
  Pages            | 174  
  Paginator pages  |   0  
  Non-page files   |   0  
  Static files     |  22  
  Processed images |   0  
  Aliases          |   0  
  Sitemaps         |   1  
  Cleaned          |   0  

Total in 105 ms

System: Fedora 30 linux.
Let me know if you need anything more.

@bep bep added the Bug label Aug 19, 2019

@bep bep added this to the v0.57.3 milestone Aug 19, 2019

@bep

This comment has been minimized.

Copy link
Member

commented Aug 19, 2019

I added a debug conditional in there while developing this, and matched on ... TODO so I should remember to remove it.

@cobratbq

This comment has been minimized.

Copy link
Author

commented Aug 19, 2019

@bep bep closed this in ad1d6d6 Aug 23, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.