Repository navigation
ci(docs): pass hugo flags through npx unchanged - #2007
Conversation
The docs build runs hugo through `npx --no hugo --minify --baseURL <url>`. Without a `--` separator npm parses the flags after the package name as its own, so hugo receives the bare URL and exits with `unknown command "https://www.gooddata.ai/docs/python-sdk"`. Reproduced locally with npm 10 and 11. The switch from a global hugo install to npx came with the zizmor hardening. Every release since failed earlier, at the Python setup, so the production docs deploy has not reached this step until now; no docs have been published since v1.79.1. Add the separator to both hugo build actions and to the draft deploy workflow, so every argument reaches hugo. jira: trivial risk: nonprod
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Netlify Deploy on
master(after #2005) fails in the Hugo build: https://github.com/gooddata/gooddata-python-sdk/actions/runs/45843885586The build runs
npx --no hugo --minify --baseURL <url>. Without a--separator npm parses the flags after the package name as its own, so hugo receives the bare URL. Reproduced locally with npm 10 and 11.The move from a global hugo install to
npxcame with the zizmor hardening (#2002). Every release since then failed earlier, at the Python setup fixed in #2005, so this step was never reached; no docs have been published since v1.79.1.The fix adds
--in both Hugo build actions and in the draft deploy workflow, so every argument reaches hugo.Risk: nonprod — docs build only.
Summary by CodeRabbit
npxoptions from Hugo commands and arguments.