I have been trying to get the content interface working with a trivial example.
consumer:
name: consumer # you probably want to 'snapcraft register <name>'
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
apps:
consumer:
command: ls -lR /snap/consumer/current/
parts:
my-part:
# See 'snapcraft plugins'
plugin: nil
plugs:
shared-files:
content: shared-files
interface: content
target: shared
default-provider: provider:shared-files
provider:
name: provider # you probably want to 'snapcraft register <name>'
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
my-part:
plugin: dump
source: .
slots:
shared-files:
content: shared-files
interface: content
read:
- /src
/src has some random files placed in it. I can see these in /snap/provider/current but nowhere in the /snap/consumer/current tree - which is where I believe they should appear.
snap interfaces shows that the plug and slot are connected.
What am I doing wrong?