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

Bug: Configure git to install pre-commit #473

Closed
machikoyasuda opened this issue Jul 9, 2024 · 0 comments · Fixed by #474
Closed

Bug: Configure git to install pre-commit #473

machikoyasuda opened this issue Jul 9, 2024 · 0 comments · Fixed by #474
Assignees

Comments

@machikoyasuda
Copy link
Member

The bug

Running the postAttachCommand from devcontainer.json...

[127422 ms] Start: Run in container: /bin/bash .devcontainer/postAttach.sh
An error has occurred: FatalError: git failed. Is it installed, and are you in a Git repository directory?
Check the log at /home/compiler/.cache/pre-commit/pre-commit.log

What's next:
    Try Docker Debug for seamless, persistent debugging tools in any container or image → docker debug 82179c5c37d960b0829f5d823b5b13fbd4ee069c859faf6490dcc989ec89858b
    Learn more at https://docs.docker.com/go/debug-cli/
[127976 ms] postAttachCommand failed with exit code 1. Skipping any further user-provided commands.
Done. Press any key to close the terminal

The fix

Following cal-itp/benefits#2027 cal-itp/docker-python-web#36 cal-itp/benefits#2017, apply the same fix to configure git to install pre-commit

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

Successfully merging a pull request may close this issue.

1 participant