Prevent unnecessary builds #87
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#87
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?
We currently always rebuild a package, even if it hasn't actually changed. This could be mitigated by figuring out a way to first run the
pkgver()
function without executing the rest of the PKGBUILD. With this information, we could send a HEAD request to the server (or maybe read the database) to check whether the package version is already present.Running
makepkg --nobuild --nodeps
causes makepkg to download all sources & run thepkgver
function, without actually starting the build. Makepkg also updates thePKGBUILD
file with the new correct version. Because aPKGBUILD
is just a Bash script, we could then source it & read the pkgver variable. To get the architecture,uname -m
should suffice. With this info, we can send a HEAD request to the package file's endpoint to see whether it exists or not.