Version-script confusing container builds

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.

1 Like

We also have this in cleanbuild, I’ll see if it can be fixed.

I suppose that was addressed back then?

We have a bug for it and it is tracked there LP: #1695882

2 Likes