-
Notifications
You must be signed in to change notification settings - Fork 155
Description
This is a feature request based on the issue I submitted yesterday regarding Apio installing updates to the packages when any Apio commands are run.
My suggestion is having something like:
apio preferences auto-packages: This would be the default, and how it behaves now, where Apio checks for updates when commands are run.
apio preferences manual-packages: This would make it so packages are only installed or updated when apio packages install is run.
Motivation for this change:
-
It eliminates the possibility of changes made to packages breaking the functionality of a working Apio installation.
-
It is frustrating that sometimes when you run and Apio command, you have to sit through a 1-2 minute download, with no control or predictability of when that happens. It would be like if running any command in Linux ran
apt upgrade. Sure, it is good to have software be up to date, but it is nice to have control over when that happens. -
Allows for more stable installations. I am using Apio in a class I am teaching, and I use an autograder that sets up a docker container with my configurations. When I create the autograder, it installs Apio and Apio's packages. Then when students submit, it launches a copy of that configured container and simulates the students' modules. The way it is now, I either have to update the base container every time there is a package update, or the packages have to update every time a student submits their code, which makes the autograder take significantly longer (it is pretty slow as is). I understand that this is not the intended use case for Apio, but it works and it is easier than using the underlying tools like
iverilog.