When using a version-script
:
snapcraft cleanbuild
# or
SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft
...
Determining the version from the project repo (version-script).
The version has been set to '2017.0.2'
Snapping 'foobar' |
Snapped foobar_2017.0.0_amd64.snap
The real version is correct:
snap list
Name Version Rev Developer Notes
...
foobar 2017.0.2 x4 devmode
So it’s just the file name that’s incorrect.