Comment 6 for bug 1831135

Revision history for this message
Bugra Aydogar (bugraaydogar) wrote :

I also have seen the same problem while building kernel-snap. The problem occurs when I re-build the kernel snap once a previous build fails.

The content of the snapcraft.yaml:

```
override-build: |
  snapcraftctl build
  snapcraftctl set-version "xxx-$(head -n1 ${SNAPCRAFT_PART_SRC}/debian.xxx/changelog | cut -f2 -d\( | cut -f1 -d\))"
```

Output of the log:
```
snapcraftctl set-version xxx-5.4.0-1028.39
Unable to set version: it was already set in the 'build' step.
```

The snapcraft version is: 7.2.9.