Store the version of a derivation in the database #294
Labels
No labels
automation
backend
bug
contributor experience
data
deployment
documentation
duplicate
good first issue
help wanted
nice to have
notifications
package maintainer
performance
skin
tech debt
user story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-community/nix-security-tracker#294
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently we only have the
name
attribute available in the db. Either provide a good utility function that works similar tobuiltins.parseDrvName
or figure out the version while evaluating Nixpkgs and put it in the db right away.This may require parsing the
.drv
file in the end, cc #58.Why can't we take the
version
attribute from the evaluation?Because this doesn't guarantee you the
version
, you need to implement something likebuiltins.parseDrvName
to inverse the concatenation.We could have a
Maybe Version
as a stopgap though, no need to build the drv parser at this point (yet). Unless it's a quick fix, because of course it would be better to just have the parser.As discussed the week before last with @erictapen, we can also copy the implementation of
nix-env
version parsing, it's not that hard. This issue would be obviated by a "correct" implementation on our end.