-
Notifications
You must be signed in to change notification settings - Fork 80
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
Conflicting file names when saving SBT #145
Comments
Is this the reason for the SBT behaviour in #133? I.e., that sbt_search returns the same signature multiple times? |
@viehwegerlib it's possible (@ctb didn't send me the files for testing yet =P) |
shame >> @ctb ;) |
@luizirber should I send you the testfiles? (would need some address) |
I think this is not the behavior we expect, at least not from the command line :). Perhaps the Python API should balk at overwriting an existing file? Also, if two signatures are identical, we should not insert them twice (from the command line) but rather spit out a warning. |
+1 |
This appears to still happen:
|
However, search does not find it more than once --
This is due to code introduced in #556 (the |
See also #884 which fixes a separate problem I introduced 👀 where the filename was based not on signature md5sum but rather on signature name, so if you had two different signatures with the same name, one overwrote the other. |
is this now resolved by #994? |
#994 solves the "storing duplicates" part, but not the "you are adding a duplicate, is this really what you want?" problem. |
SBT allows repeatedly inserting the same leaf:
The generated JSON
A graphical representation:
Note that we have a DAG in this case, not a tree anymore... The figure is misleading, in fact there memory representation will be more like this:
but the content of each
name
node will come from the same signature.This is the content of
.sbt.test
:The question is: is this the behavior we expect?
The text was updated successfully, but these errors were encountered: