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

Make debug flag manual #482

Closed
wants to merge 1 commit into from
Closed

Make debug flag manual #482

wants to merge 1 commit into from

Conversation

phadej
Copy link
Contributor

@phadej phadej commented Sep 4, 2023

By default flags are automatic. The debug flag is intended to be enabled manually, it seems bizarre to allow solvers to flip it.

unordered-containers.cabal Outdated Show resolved Hide resolved
@konsumlamm
Copy link
Contributor

So actually this makes the debug flag manual (and not automatic, as the title/commit says).

@phadej phadej changed the title Make debug flag automatic Make debug flag manual Sep 4, 2023
@phadej
Copy link
Contributor Author

phadej commented Sep 4, 2023

So actually this makes the debug flag manual (and not automatic, as the title/commit says).

Yes

By default flags are automatic. The `debug` flag is intended to be enabled manually, it seems bizarre to allow solvers to flip it.
@phadej
Copy link
Contributor Author

phadej commented Oct 10, 2023

ping

@treeowl
Copy link
Collaborator

treeowl commented Oct 10, 2023

Who's being pinged?

@phadej
Copy link
Contributor Author

phadej commented Oct 10, 2023

Maintainers of unordered-containers.

@treeowl
Copy link
Collaborator

treeowl commented Oct 13, 2023

This seems reasonable on its surface, but I don't know enough about cabal. So a couple quick questions before I merge:

  1. How could it be flipped automatically?
  2. Why do we want to forbid automatic flipping? Is that a performance issue? A correctness issue?

@phadej
Copy link
Contributor Author

phadej commented Oct 13, 2023

How could it be flipped automatically?

By a solver.

Why do we want to forbid automatic flipping?

Because the flip to debug may happen unattendedly. debug has performance implications.

@treeowl
Copy link
Collaborator

treeowl commented Oct 13, 2023

How could it be flipped automatically?

By a solver.

Would you mind expanding on this just a little for my own education? What is a solver, exactly, and how would I end up with one that flips debug flags?

@phadej
Copy link
Contributor Author

phadej commented May 1, 2024

What is a solver, exactly, and how would I end up with one that flips debug flags?

Dependency solver. You may not, some other people may.

But I'm not keen on pushing this through anymore. May the solver flip flags on its will.

@phadej phadej closed this May 1, 2024
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.

4 participants