'after' clause in remote parts are ignored

So I have a remote part

tomcat-with-ssl

That remote part actually contains three parts

tomcat-with-ssl
getcert
setup-repo

There is a build order which is enforced within the parts using after clauses:

parts: 
tomcat-with-ssl:
  after: [getcert]

getcert:
  after: [setup-repo]

setup-repo:

If I build this part directly the after clauses are honoured.

If I include the remote part in a snap using the after clause:

<some snap>
parts:
 apart:
   after: [tomcat-with-ssl]

I would have expected that snapcraft would have honoured the above after statements.

Instead the after statements were all ignored.
To make the remote part work I had to include the following in the snap:

parts:
 apart:
   after: [setup-repo, getcert, tomcat-with-ssl]

This just feels wrong and unnecessary. These clauses are already declared in the remote part so why should I need to repeat them.

Have I done something wrong?
Is this the intended behaviour?

1 Like

Indeed, I filed this bug last week. https://bugs.launchpad.net/snapcraft/+bug/1750866

1 Like

ok thanks. I’ve updated the bug to reflect that I’m also affected.

1 Like