Skip to content

Instantly share code, notes, and snippets.

@sergiusens
Last active May 31, 2016 22:17
Show Gist options
  • Save sergiusens/10c87c3d641b30799692acd287c7e364 to your computer and use it in GitHub Desktop.
Save sergiusens/10c87c3d641b30799692acd287c7e364 to your computer and use it in GitHub Desktop.
Parts ecosystem
# This is a project using a part in the cloud using one of the `other-parts` declared for a shared part.
parts:
my-part:
plugin: autotools
source: .
after: [main.my-other-part]
# This is a project using a part in the cloud using one of the `project-part`s declared for a shared part which would implicitly use the `other-parts` declared there.
parts:
my-part:
plugin: autotools
source: .
after: [main]
# This is aprt of a `snapcraft.yaml` in https://github.com/snapcore/some-project.git
parts:
main:
plugin: autotools
source: .
configflags: [--with-snap-love]
after: [my-other-part]
my-other-part:
plugin: cmake
source: somedir
---
origin: https://github.com/snapcore/some-project.git
maintainer: ...
description: this will import correctly
main-part: main
other-parts: [my-other-part]
---
origin: https://github.com/snapcore/some-project.git
maintainer: ...
description: this will import INCORRECTLY as it is missing `my-other-part` which is needed by `main`.
main-part: main
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment