-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version: validate format of the git tag #12533
Conversation
d62980e
to
6f98f8a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused why later we use the variable git_version
which is directly extracted from another git command and does not go through the check that you added.
Shouldn't these two things be based on the same git command? That way what you extracted and checked is also used (and therefore correct)?
args = parser.parse_args() | ||
filename = args.filename | ||
verbose = args.verbose | ||
validate = args.validate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is nicer with argparse. Overall it would be nice to split this script up into functions but that could follow in a future PR.
This fails the build if a wrong version tag is used. A wrong tag leads to wrong reporting in QGC, and incorrect error messages about minimum required PX4 version. It also leads to wrong statistics on Flight Review.
|
This fails the build if a wrong version tag is used.
A wrong tag leads to wrong reporting in QGC, and incorrect error messages about minimum required PX4 version.
It also leads to wrong statistics on Flight Review.