cleanbuild loses scripted version

Bug #1695882 reported by Stuart Bishop
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Medium
Christian Dywan

Bug Description

The version script is working fine for local builds. However, with 'cleanbuild' the calculated version is being thrown away and replaced with the hardcoded version: field. In this case, the snapcraft.yaml contains 'version: git'

Staging plinth
Priming plinth
Determining the version from the project repo (version-script).
The version has been set to '1.0.0+epoch-69-g9bc5ec3'
Snapping 'plinth' -
Snapped plinth_git_amd64.snap
Retrieved plinth_git_amd64.snap
Stopping local:snapcraft-jolly-tops-worm

Tags: cleanbuild
Leo Arias (elopio)
Changed in snapcraft:
status: New → Confirmed
tags: added: cleanbuild
Changed in snapcraft:
importance: Undecided → High
Revision history for this message
Blake Rouse (blake-rouse) wrote :

This affects the MAAS snap as well since we transitioned to git and use the new version-script.

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

This is just the filename being different, the version inside the snap (once installed or pushed to the store) is correct.

Changed in snapcraft:
status: Confirmed → Triaged
importance: High → Medium
assignee: nobody → Sergio Schvezov (sergiusens)
Changed in snapcraft:
assignee: Sergio Schvezov (sergiusens) → Christian Dywan (kalikiana)
Revision history for this message
林博仁(Buo-ren, Lin) (buo-ren-lin) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers