Skip to content
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

Fix bugs causing spurious diffs on updates without changes #1550

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

mosteo
Copy link
Member

@mosteo mosteo commented Jan 28, 2024

Some types internally where using pointers instead of pointed objects for comparison.

Fixes unrelated bug in dealing with empty error messages (we never generate those, but some Ada 2022 'Image do).

Fixes #1278

Solutions were the same, but some types internally where using pointers instead
of pointed objects for comparison.

WIP
@mosteo mosteo marked this pull request as ready for review January 29, 2024 10:17
@@ -31,7 +31,14 @@ abstract project Alire_Common is
"-gnatyu", -- no unnecessary blank lines
"-gnatyx", -- no extra parens around conditionals
"-gnaty-s"); -- relax fwd decl
when "disabled" => Style_Check_Switches := ();
when "disabled" => Style_Check_Switches :=
("-gnat2022",
Copy link
Member

Choose a reason for hiding this comment

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

I don't think it's good to change language version when disabling style checks.
I fear this is going to have unexpected consequences that will make your life harder.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let's make it a separate scenario then. In any case all of our checks have checks enabled so it shouldn't slip through.

@mosteo mosteo merged commit f850edd into master Jan 31, 2024
13 checks passed
@mosteo mosteo deleted the fix/null-update branch January 31, 2024 17:24
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.

Don't ask if user wants to proceed if there are no changes
2 participants