Confirm if we should use library for apt operations

Bug #1962335 reported by Tom Haddon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-ubuntu-advantage
Fix Released
Undecided
Unassigned

Bug Description

Some charms do the following:

`from charms.operator_libs_linux.v0 import apt`

We should confirm if this is the recommended approach and if so implement, bearing in mind how we'd update these libraries as part of charm publishing workflow.

See https://github.com/canonical/mongodb-operator/blob/main/src/charm.py#L267 for an example.

Related branches

Revision history for this message
Jose Guedez (jfguedez) wrote :

Looking at the current SDK docs, there's a new section (at least to me) about libraries [0].

There is an entry for apt, which points to this "charm" [1][2] that is essentially a collection of libraries. The code from that mongodb charm link seems to come from there.

As it's included in the official documentation, it seems to be the official library for this.

[0] https://juju.is/docs/sdk/library-index
[1] https://charmhub.io/operator-libs-linux
[2] https://github.com/canonical/operator-libs-linux

Revision history for this message
Tom Haddon (mthaddon) wrote :

I've released revision 17 to the edge channel which should address this. Since that's now in the upstream code, I'm going to mark this as fix released, even though that version of the charm isn't yet in the stable channel (we have a separate bug tracking that as well).

Changed in charm-ubuntu-advantage:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.