Snap layout error

I am trying to use layouts for a snap that I am building. Here is my exact snapcraft.yaml code:

passthrough:
   layout:
    /usr/share/dunelegacy/:
     bind: $SNAP_DATA/usr/share/dunelegacy

The snap builds fine, but when I try to install it, I get the following error:

error: cannot read snap file: layout "/usr/share/dunelegacy/" uses invalid mount point: must be
   absolute and clean

What am I doing wrong?
I tried creating the dunelegacy directory, but the error persists. Why?

Hi, try removing the trailing / from /use/share/dunelegacy/

1 Like

That worked. Thank you!