Skip to content

prepare_release.sh: add check that DISTRO_VERSION matches the release name#150

Merged
jklare merged 2 commits intomainfrom
jogo_distro_version_check
Jul 10, 2025
Merged

prepare_release.sh: add check that DISTRO_VERSION matches the release name#150
jklare merged 2 commits intomainfrom
jogo_distro_version_check

Conversation

@KanjiMonster
Copy link
Contributor

Since we managed to do a release that had an invalid version, let's add a check for the release script to check that DISTRO_VERSION is set to the version for which we are preparing a release.

We want to do more checks, so move the checkout to a separate call.

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
@KanjiMonster KanjiMonster requested a review from jklare April 16, 2025 09:27

distro_version=$(grep '^DISTRO_VERSION' $WORKDIR/poky/meta-bisdn-linux/conf/distro/bisdn-linux.conf)

# extract value
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be good to have a comment here how the string that we are parsing could look like (especially since there are two different declarations for the same variable below).

To avoid mistakes where DISTRO_VERSION has the wrong format, or was
forgotten to be updated, add a check that DISTRO_VERSION matches what
the new version says.

Signed-off-by: Jonas Gorski <jonas.gorski@bisdn.de>
@KanjiMonster KanjiMonster force-pushed the jogo_distro_version_check branch from 7f5b39b to c173d9d Compare July 10, 2025 09:00
@jklare jklare merged commit 1e28392 into main Jul 10, 2025
3 checks passed
@jklare jklare deleted the jogo_distro_version_check branch July 10, 2025 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants