Skip to content

Conversation

@oehme
Copy link
Contributor

@oehme oehme commented Nov 27, 2025

Otherwise, the installed counter can end up negative, breaking future install attempts. I considered just ignoring repeated uninstall calls, but that may hide bugs in clients of this library, so I'd rather fail cleanly.

Otherwise, the installed counter can end up negative, breaking future install attempts.
I considered just ignoring repeated uninstall calls, but that may hide bugs in clients
of this library, so I'd rather fail cleanly.

Signed-off-by: Stefan Oehme <st.oehme@gmail.com>
@gnodet gnodet changed the title Fail on repeated uninstalls AnsiConsole should fail on repeated uninstalls Dec 11, 2025
@gnodet gnodet merged commit b3434b9 into jline:master Dec 11, 2025
9 checks passed
@gnodet
Copy link
Member

gnodet commented Dec 11, 2025

💔 All backports failed

Status Branch Result
jline-3.9.x The branch "jline-3.9.x" does not exist

Manual backport

To create the backport manually run:

backport --pr 1525

Questions ?

Please refer to the Backport tool documentation

gnodet pushed a commit that referenced this pull request Dec 11, 2025
Otherwise, the installed counter can end up negative, breaking future install attempts.
I considered just ignoring repeated uninstall calls, but that may hide bugs in clients
of this library, so I'd rather fail cleanly.

Signed-off-by: Stefan Oehme <st.oehme@gmail.com>
(cherry picked from commit b3434b9)
@gnodet
Copy link
Member

gnodet commented Dec 11, 2025

💚 All backports created successfully

Status Branch Result
jline-3.x

Questions ?

Please refer to the Backport tool documentation

gnodet added a commit that referenced this pull request Dec 11, 2025
Otherwise, the installed counter can end up negative, breaking future install attempts.
I considered just ignoring repeated uninstall calls, but that may hide bugs in clients
of this library, so I'd rather fail cleanly.


(cherry picked from commit b3434b9)

Signed-off-by: Stefan Oehme <st.oehme@gmail.com>
Co-authored-by: Stefan Oehme <st.oehme@gmail.com>
@oehme
Copy link
Contributor Author

oehme commented Dec 14, 2025

Thanks! Could you add update maven-core to use this patch? That might help me hunt down that weird race condition.

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