-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
non unique dictionary key error #191
Comments
Interesting. This error is triggered by a check that kicks in when applying left-strip patterns to see if a left strip results in a collision in artifact paths. Specifically here, it seems to be |
Let me experiment with it a bit. |
Also, you've excluded node_modules but looks like that didn't take. |
Okay, so I don't yet have an answer for why the exclude didn't work but the issue was https://github.com/testifysec/intoto-run-action/blob/main/node_modules/%40actions/tool-cache/node_modules/.bin/uuid. There was a symlink pointing to an artifact that was already recorded. We should clear up the error message to indicate it can happen even in non left strip situations. cc @shibumi |
So TODO:
|
Should we change this from an error to a warning and continue? |
I think the problem is that with symlink management, the destination path is used. The file at the destination should be hashed but the path should be the path to the symlink itself.
When recording both, the paths should be As for warning vs error in the general sense, I think not. With left strips, we can have collisions with entirely different files, where only one will be recorded. The short term resolution for this issue is to exclude |
I believe the exclude patterns issue might belong in @shibumi's go-pathspec. |
General information:
main
linux
1.19.1
failed to create link metadata: left stripping has resulted in non unique dictionary key: /node_modules/@actions/tool-cache/node_modules/uuid/bin/uuid
When testing the in-toto run action we run into the above error when calculating the materials for the job.
The text was updated successfully, but these errors were encountered: