Re-write repo-add in V #1
Labels
No labels
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 project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: vieter-v/vieter#1
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?
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.