Updating imported charms through Charmhub

After playing a bit with juju upgrade-charm it looks like upgrading to a newer charm from the Charm Store with the changed name from foo to bar-foo works well but not when the charm is being updated from a local directory. Then it complains and reports ERROR cannot refresh "foo" too "bar-foo".

So looks like changing the name as charmcraft requires doesn’t come without consequences.

Simon