The rock-update workflow gets the Go version from the upstream project's go.mod file, where it can be expressed in any form (e.g., 1.20, 1.20.1, etc). However, when the ROCK is built, the go binary is taken from the Snap, which names its channels after major.minor only.
The workflow needs to cut the Go version to the major.minor format, so the ROCK can reference the correct snap channel when packing.
The
rock-update
workflow gets the Go version from the upstream project'sgo.mod
file, where it can be expressed in any form (e.g.,1.20
,1.20.1
, etc). However, when the ROCK is built, thego
binary is taken from the Snap, which names its channels aftermajor.minor
only.The workflow needs to cut the Go version to the
major.minor
format, so the ROCK can reference the correct snap channel when packing.