Describe the bug
Kit will validate Kitfiles and report an error if there are duplicate paths in the Kitfile. However, this comparison is done as a plain string comparison, meaning paths that are the same from the filesystem perspective are treated as different
To Reproduce
The commands below pack an invalid Kitfile that cannot be unpacked without specifying the -o flag.
cd $(mktemp -d)
mkdir test-dir/
echo "hello" > test-dir/test-file
cat <<EOF > Kitfile
manifestVersion: 1.0.0
datasets:
- path: test-dir/
code:
- path: test-dir
EOF
kit pack -t test:test .
Instead, kit should detect the duplicate path and print a meaningful error
Version
v1.11.0
Additional context
Add any other context about the problem here.
Describe the bug
Kit will validate Kitfiles and report an error if there are duplicate paths in the Kitfile. However, this comparison is done as a plain string comparison, meaning paths that are the same from the filesystem perspective are treated as different
To Reproduce
The commands below pack an invalid Kitfile that cannot be unpacked without specifying the
-oflag.Instead, kit should detect the duplicate path and print a meaningful error
Version
v1.11.0
Additional context
Add any other context about the problem here.