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.
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:
``` PART_SRC} /debian. xxx/changelog | cut -f2 -d\( | cut -f1 -d\))"
override-build: |
snapcraftctl build
snapcraftctl set-version "xxx-$(head -n1 ${SNAPCRAFT_
```
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.