Snapcraft should complain multiple `after` properties in a single part

Bug #1826753 reported by 林博仁(Buo-ren, Lin)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

I stuck on debugging the missing patch files in the following part definition

```yaml
parts:
  picard:
    after:
    - patching

    source: https://github.com/metabrainz/picard.git
    source-depth: 100
    source-tag: release-2.1.3
    plugin: x-python
    override-build: |
      git apply --verbose "${SNAPCRAFT_STAGE}"/patching/localedir.patch

      snapcraftctl build
    after: [desktop-qt5]

  # Code patching to fix another part, when it cannot be solved by other means
  patching:
    source: patching
    plugin: dump
    organize:
      '*': patching/
    prime:
    - -*
```

Which I (veeeery) later recognize that it is the `after: [desktop-qt5]` line that cause the problem, and has the effect of Snapcraft no longer consider the `patching` part os the `picard` part's dependency.

I suggest that Snapcraft bails out prematurely if multiple `after` properties are defined in a single part.

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.