Closed samuelallan72 closed 3 weeks ago
Thanks for the report!
@mr-cal I wonder if this could explain some of @NucciTheBoss's issues with parallel-installed snapcrafts?
It appears that requesting /v2/snaps/<snap_name>
from snapd.socket
doesn't take into account the snap's instance key. I guess that makes sense, as snapd doesn't know where it's getting that call from. So instead it's always installing the un-instanced name. Here @samuelallan72 saw a different error (404) because they didn't have an un-instanced charmcraft installed.
If I'm correct here, would it make sense in craft-providers
to check the environment for SNAP_NAME == snap_name
and if so, append _{SNAP_INSTANCE_KEY}
to the URL if the snap is there? Or is it more appropriate for something higher level (probably craft-application) to adjust the name?
Thinking more about this, I think craft-application
is probably the better place since craft-providers
probably shouldn't be aware of the application context.
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3351.
This message was autogenerated
Use SNAP_REVISION
and maybe SNAP_INSTANCE
to corroborate
Bug Description
Now that charms are beginning to be upgraded to use charmcraft 3, I want to have charmcraft v2 and v3 installed so I can work with all the charms I need to. I tried to do this for the snap using the "parallel installs" feature:
But this failed (see logs section). It appears that charmcraft is trying to access a hardcoded path that doesn't exist on the parallel install?
To Reproduce
charmcraft_3
to build a charm.Environment
Ubuntu 24.04 LTS
charmcraft.yaml
Relevant log output