-
Notifications
You must be signed in to change notification settings - Fork 18
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
better documentation of Git-sourced fields when parsing #176
Comments
toml
parsing fails if not all advisories are consecutive toml
parsing fails if you remove one of the advisories
yeah I have no idea of where this is coming from; the toml parser also fails if I just 1;1 copy the advisories to some empty directories. |
ListAdvisoryValidationError
"/nix/store/99blf5rfm6rp0sr18168xclkw1gnr47y-empty-dir-with-advisories"
[ AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
, AdvisoryError
[ MatchMessage
{ matchAnn = Nothing
, matchPath = []
, matchMessage =
"missing mandatory key: advisory.date"
}
]
"missing mandatory key: advisory.date in <top-level>\n"
] |
is it possible that this has to do something with |
We use the git history to deduce the |
I can't reproduce the issue as described in the summary (remove one advisory). I deduce that this all FWIW, we will soon work on an index/archive format of some kind (#170) for efficient distribution of advisories, and which |
Ahhh makes sense yes. Thank you! |
I think that's a good idea; fwiw if you provided not-only a toml parser but also pretty-printer, that should be really easy to do ;) |
Cheers, I'm going to leave this issue open as a reminder to improve the documentation about this implementation detail. |
toml
parsing fails if you remove one of the advisories
thank you <3 |
|
I guess as a jsonl |
without any code changes, this started breaking downstream @frasertweedale https://github.com/MangoIV/cabal-audit/actions/runs/9102576510/job/25656820603 I don't know what is wrong, I can use |
The fact we use the Git history to deduce the published and modified date fields is
non-obvious and can confuse users, because parsing our advisory content will fail if
they are divorced from the Git repo. We should improve the documentation about this.
original summary retained below
Summary
Expected behavior
Cause of the bug
The text was updated successfully, but these errors were encountered: