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

Fix inconsistent "Watching for changes in [path]" output with hugo server #1721

Closed
anthonyfok opened this Issue Dec 19, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@anthonyfok
Contributor

anthonyfok commented Dec 19, 2015

The printed watched paths look kind of weird when --source is a relative directory. For example:

foka@debian:~/git/hugo$ hugo server -s docs
0 draft content
0 future content
166 pages created
0 paginator pages created
41 tags created
0 groups created
in 409 ms
Watching for changes in docs/docs/{..}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
foka@debian:~/git/hugo$ cd docs
foka@debian:~/git/hugo/docs$ hugo server 
0 draft content
0 future content
166 pages created
0 paginator pages created
41 tags created
0 groups created
in 425 ms
Watching for changes in /home/foka/git/hugo/docs/{data,content,layouts,static}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

tychoish added a commit to tychoish/hugo that referenced this issue Aug 13, 2017

Fix hugo server "Watching for changes" path display
especially when the given `--source` path is a relative directory.

Also, when `--source` is specified, make WorkingDir an absolute path
from the very beginning, to be consistent with the case when `--source`
is not given.  Otherwise, the function name helpers.AbsPathify(), which
prepends WorkingDir to a relative path, does not really make sense.

Fixes gohugoio#1721
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment