Open Aisuko opened 1 year ago
It looks like -exec sed -i'' -e 's/ggml_/ggml_gptj_/g' {} +
will create sedCQKLDZ
somehow.
In a container, the sed command with -i''
subcommand will create a temporary file in place but it will save into the same folder. And it will cause this issue.
So, it works well after replacing -i
: -exec sh -c "sed 's/ggml_/ggml_bert_/g' {} > {}.tmp && mv {}.tmp {}" \;
.
However, I still do not know the reason it was failed in the container environment.
Hi, guys. Thanks for working on this project. I am a big fan of the dev-containers project. I have many of experience with dev-containers. I hit an issue when I use the sed command in the
mcr.microsoft.com/devcontainers/go:0-1.20-bullseye
container. I always get a temporary file and it causes shell scripts to fail.However, it works well on my local laptop(M1 Pro). So, please help me figure out the reason, thanks.
Shell scripts
Configuration see below.
Docker-compose file
Dockerfile