Skip to content

Kit misses identical paths in validation if they are formatted differently #1109

@amisevsk

Description

@amisevsk

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions