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

User unable to commit after running npm install within container #205

Open
LorenzBischof opened this issue Mar 4, 2022 · 0 comments
Open

Comments

@LorenzBischof
Copy link
Contributor

The README suggests running mdlint inside a container. Since Husky automatically installs the Git pre-commit hook and the repository is mounted as a volume, the user will probably not be able to commit anymore. I did not test this.

docker run --rm --interactive -v $(pwd):/src klakegg/hugo:${HUGO_VERSION}-ci /bin/bash -c "set -euo pipefail;npm install; npm run mdlint;"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant