Re-write repo-add in V #1
Labels
No Label
Roadmap
V
bug
docs
duplicate
enhancement
good first issue
help wanted
idea
invalid
question
wontfix
Idea
Roadmap
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vieter-v/vieter#1
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
The repo-add source code is "just" a 600 line shell script, but a lot of time is spent parsing arguments etc. This means that it shouldn't be too much work to re-write this in V, with the goal of completely removing any os.execute calls.
Advantages
Tasks
Another big advantage of this would be the ability to run this program without having to rely on an archlinux Docker image. This would make the images much more reliable and a lot smaller.
Having this completely inside the binary will require us to link libarchive, as we need the bsdtar functionality.
We might be able to make our repo-add implementation more efficient by not always deleting the unpackages directories after adding a package to the repository. This would take up a bit more space, but it's just text, so it's not much of an issue.