-
Notifications
You must be signed in to change notification settings - Fork 53
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
chore: fix archive version while logging #144
chore: fix archive version while logging #144
Conversation
e2c9759
to
25cabd1
Compare
Archive version was being changed to 23.1 instead 23.10 for values with trailing zeroes. This commit fixes the bug. https://github.com/canonical/chisel-releases/actions/runs/8014505888/job/21893215155?pr=143
str(archive_data["version"]), archive_data["components"], archive_data["suites"] | ||
) | ||
version = archive_data["version"] | ||
if isinstance(version, float): |
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.
is there ever a time where this won't be a float?
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.
is there ever a time where this won't be a float?
I think that may happen if something encloses the version with quotes.
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.
Since the chisel tool expects and reads version
as a string, someone can enclose it in quotes as Anas mentioned.
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.
good catch. lgtm
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.
LGTM, thanks!
Archive version was being changed to 23.1 instead 23.10 for values with trailing zeroes. This commit fixes the bug. https://github.com/canonical/chisel-releases/actions/runs/8014505888/job/21893215155?pr=143
Archive version was being changed to 23.1 instead 23.10 for values with trailing zeroes. This commit fixes the bug. https://github.com/canonical/chisel-releases/actions/runs/8014505888/job/21893215155?pr=143
Archive version was being changed to 23.1 instead 23.10 for values with trailing zeroes. This commit fixes the bug. https://github.com/canonical/chisel-releases/actions/runs/8014505888/job/21893215155?pr=143
Archive version was being changed to 23.1 instead 23.10 for values with trailing zeroes. This PR fixes the bug.
https://github.com/canonical/chisel-releases/actions/runs/8014505888/job/21893215155?pr=14