Build order with dependencies #182

Open
opened 2022-05-15 12:50:01 +02:00 by Jef Roosens · 1 comment

An interesting problem arises when packages depend on other packages in the Vieter repository. The dependencies' builds should run before the package that it's dependent on to ensure they're both up to date. This would require us to know the order of the builds.

One idea would be to enforce having a .SRCINFO in the Git repo containing the PKGBUILD; the AUR does this as well. The cron server could then use this information to schedule the repositories accordingely. It would however require the cron server to clone all the repositories beforehand instead of during the build. I'm not also not sure what would need to happen if the dependency isn't scheduled for a rebuild yet.

An interesting problem arises when packages depend on other packages in the Vieter repository. The dependencies' builds should run before the package that it's dependent on to ensure they're both up to date. This would require us to know the order of the builds. One idea would be to enforce having a .SRCINFO in the Git repo containing the PKGBUILD; the AUR does this as well. The cron server could then use this information to schedule the repositories accordingely. It would however require the cron server to clone all the repositories beforehand instead of during the build. I'm not also not sure what would need to happen if the dependency isn't scheduled for a rebuild yet.
Jef Roosens added the
idea
label 2022-05-15 12:50:01 +02:00

Very interesting, in the compiler source code there's a dependency graph resolver that we could import.

Very interesting, in the compiler source code there's a dependency graph resolver that we could import.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vieter-v/vieter#182
There is no content yet.