canonical / observability

Apache License 2.0
7 stars 11 forks source link

fix rock-update to use major-minor go version #132

Closed lucabello closed 11 months ago

lucabello commented 11 months ago

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.