Closed zwade closed 2 years ago
Thanks for the report. Can you include more details on the structure of the challenge directory that this failed on? I'm guessing that problem.md
is located in ..../react-tests/
but I want to confirm before I look into the best way to gracefully handle this.
Yeah! Thanks for looking into this, here's a pretty minimal POC
mkdir poc && cd poc
mkdir folder
touch folder/file1
ln -s folder file2
cat > problem.md <<EOF
# Test
- namespace: cmgr/test
- type: custom
EOF
echo "FROM empty" > Dockerfile
cmgr update .
Specifically, if the directory contains a symbolic link to another directory, then hashing will get confused and say (e.g.)
(As you might be able to guess from the path, this is a problem for yarn projects which always put symlinks to workspaces in the
node_modules
directory)