-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Fall back to trying ex.New(binaryName, cmdArgs...) when ex.Npx fails for PostCSS etc. #12486
Comments
I'm experiencing a similar drawback when working from within this dev container. {
"name": "Build environment",
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/go:1": {},
"ghcr.io/devcontainers/features/hugo:1": {
"extended": true
},
"ghcr.io/devcontainers/features/node:1": {}
}
}
|
I ran into this myself. I can't use the postcss-cli package from nixpkgs, because An aside:
is because of tailwind. Once we get the new tailwind engine, I expect it will warrant its own Related discussion:
|
Odd timing, I was just testing Tailwind Oxide: bep/hugo-starter-tailwind-basic#19 It's convenient to have As to this issue:
Hugo currently only executes predefined binary names that's in the OS |
Why not create a |
I don't want to speak for @kurotych, but given that they are already building and running a docker container with a However, I think both of our problems would be solved easily and securely by falling back to checking for a binary of the same name using hugo/resources/resource_transformers/postcss/postcss.go Lines 203 to 210 in af0cb57
Basically:
|
I agree. I'm going to repurpose this issue some something that's both simple and actionable, and if that does not fix it, we'll revisit later. |
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. |
I want to use a theme (https://github.com/google/docsy) but I don't want to install any NodeJS garbage on my host machine.
As a workaround, I created a Dockerfile, wrapped script and rebuilt hugo
docker build -t postcss .
❯ cat postcss
Rebuild Hugo with a changed next-line because
Npx
function adding the npx prefix that I don't need.hugo/resources/resource_transformers/postcss/postcss.go
Line 203 in ee26e69
=>
It'd be nice to have a configurable binary path to the
postcss
to make it possible to call without npx prefix.The text was updated successfully, but these errors were encountered: