charmstore icon indicating copy to clipboard operation
charmstore copied to clipboard

Unable to match cs:~foo/name revisions to cs:name revisions

Open stub42 opened this issue 9 years ago • 2 comments

I publish the PostgreSQL charm to cs:~postgresql-charmers/postgresql, and get back a revision like cs:~postgresql-charmers/postgresql-5. This is totally unrelated to the revision that end users will use, cs:postgresql-101. The end result being that when bug reports come in I have no idea what version of code was being run, unless I somehow maintain this mapping myself.

stub42 avatar Jun 02 '16 14:06 stub42

Yes the charm store needs to expose the link between entities and their promulgated revisions.

frankban avatar Jun 10 '16 12:06 frankban

As a temporary manual work around, you can use the hash field returned by charm show to find the right revision, if you already know which namespace is the promulgated one (which you can sort of figure out by the perm field):

$ [[ `charm show cs:postgresql-101 hash` == `charm show cs:~postgresql-charmers/postgresql-5 hash` ]] && echo Match
Match

johnsca avatar Jun 13 '16 17:06 johnsca