-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Unpack function in archive package #604
Conversation
2967f31
to
988df50
Compare
.github/workflows/test.yml
Outdated
@@ -27,7 +30,9 @@ jobs: | |||
- name: Install dependencies | |||
run: | | |||
sudo apt-get -qq update | |||
sudo apt-get install -y squashfs-tools | |||
sudo apt-get install -y squashfs-tools libcap-dev libacl1-dev | |||
sudo add-apt-repository -y ppa:dqlite/dev |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does distrobuilder need dqlite or liblxc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's probably importing something from github.com/lxc/lxd
which is triggering this, but it'd definitely be preferable to track down what's causing it and split packages differently on the LXD side instead of pulling all of this into distrobuilder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably the apparmor package, yeah would be good to split.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new Unpack()
function takes a sys.OS
argument. The sys
package requires the db
package among others. So that's the reason. distrobuilder
itself doesn't need either of the mentioned packages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps allowing nil
for that specific argument would solve this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That explains dqlite, but not liblxc?
Can we decouple sys
from db
or move sys.OS
elsewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends how the liblxc dep is being introduced.
The latest Unpack function from LXD pulls in some unnecessary dependencies. We therefore ship LXD's old Unpack function. Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
988df50
to
c6add03
Compare
No description provided.