-
Notifications
You must be signed in to change notification settings - Fork 35
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
Remove go-lxc dependencies #5
Conversation
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.
I think this would be fine to add to shared.
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.
Pr description is a little confusing as go-lxc is the go wrapper of liblxc not lxd's go client :)
Or is this an indirect dependency you're trying to avoid?
Does this also need a go mod update?
Yeah I'm trying to avoid bringing in liblxc. |
Thanks, ive merged the lxd pr now. |
@masnax I take it this needs an update for the LXD change as well as including a gomod update? |
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Reimplements SetupTrust from LXD so we don't import too much from LXD. I think this is a simple enough function that we can duplicate it, not sure if we should bloat LXD's shared package with it. Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
@stgraber I've updated this now for the LXD changes. Also since the LXD changes include the new init types, I've gone ahead and added a commit changing the initialization to use the |
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.
Lgtm
Good to see all of those indirect dependencies removed. |
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Just fixed a small typo (The preseed yaml was both the last argument and being written to stdin) |
Reimplements SetupTrust from LXD so we don't import too much from LXD. I think this is a simple enough function that we can duplicate it, not sure if we should bloat LXD's shared package with it.