apache / incubator-graphar

An open source, standard data file format for graph data storage and retrieval.
https://graphar.apache.org/
Apache License 2.0
192 stars 40 forks source link

[Bug][docker] Missing pre-commit/install-hook.sh Script During Remote Containers Post-Creation #500

Closed ywh555hhh closed 1 month ago

ywh555hhh commented 1 month ago

Describe the bug, including details regarding any error messages, version, and platform.

I encountered an error while re-opening the source Code using Visual Studio Code's Remote Containers plugin for the first time. The error message indicates that the script pre-commit/install-hook.sh that you tried to run did not exist when executing postCreateCommand as defined in devcontainer.json. When I examined the contents of the directory in the terminal, I found that there was no pre-commit folder or install-hook.sh file in the /workspaces directory. However, when I opened the development container a second time, the error did not occur again, and subsequent C++ library builds and installations were not affected.

here

The error information is as follows

[277674 ms] Start: Run in container: /bin/sh -c sudo chown -R graphar /workspaces && bash pre-commit/install-hook.sh && bash pre-commit/prepare-commit-msg
bash: pre-commit/install-hook.sh: No such file or directory

graphar ➜ /workspaces $ ls -a
.  ..  incubator-graphar

Is this normal?

Component(s)

Developer Tools