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

--destination results in wrong path #13256

Closed
nazar-pc opened this issue Jan 13, 2025 · 1 comment
Closed

--destination results in wrong path #13256

nazar-pc opened this issue Jan 13, 2025 · 1 comment

Comments

@nazar-pc
Copy link

There is a misalignment between --source option (which is relative to current working directory) and --destination, which is relatively to --source for some reason.

This results in confusing behavior where running build from root of the repo looks like this:

hugo --source website/main --destination ../../gh-pages

This is completely unexpected and should work like this instead:

hugo --source website/main --destination gh-pages

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

$ hugo version
hugo v0.123.7+extended linux/amd64 BuildDate=2024-11-06T01:07:23Z VendorInfo=ubuntu:0.123.7-1ubuntu0.2

Does this issue reproduce with the latest release?

Probably not, at least I have not seen anything relevant in changelog

@bep
Copy link
Member

bep commented Jan 13, 2025

This is completely unexpected and should work like this instead:

I think this is the first time I have heard about this being an issue, so maybe ... expectations differ? Anyhow, I don't think we can change this behaviour. That said, I'm pretty sure you can do:

hugo --source /foo/baz/website/main  --destination /foo/bar/gh-pages

@bep bep added NotSure and removed NeedsTriage labels Jan 13, 2025
@bep bep added this to the Unscheduled milestone Jan 13, 2025
@nazar-pc nazar-pc closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy