Skip to content

Conversation

@Keno
Copy link
Member

@Keno Keno commented Nov 7, 2025

Part of JuliaLang/julia#60058. When we don't have a log file setup, the default IO is set to devnull. However, this causes Pkg.status to early out and skip some validity checks that we are testing for. Fix this by passing an appropriate io directly to the API. For the REPL test, which don't have an IO argument, override the global default IO, but to make that more robust also switch it to a ScopedValue (which Pkg is already using elsewhere).

Part of JuliaLang/julia#60058. When we don't
have a log file setup, the default IO is set to devnull. However, this
causes `Pkg.status` to early out and skip some validity checks that
we are testing for. Fix this by passing an appropriate io directly
to the API. For the REPL test, which don't have an IO argument,
override the global default IO, but to make that more robust also
switch it to a ScopedValue (which Pkg is already using elsewhere).
repl = REPL.LineEditREPL(term, true)
REPL.run_repl(repl)
repl_init(repl)
@Base.ScopedValues.with Pkg.DEFAULT_IO => Pkg.unstableio(devnull) begin
Copy link
Member

Choose a reason for hiding this comment

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

These even syntax highlights badly :P. I'm sure runic will complain about this at some point so might as well sawp it now heh.

Copy link
Member Author

Choose a reason for hiding this comment

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

FWIW, I don't really agree that the other macrocall form is preferable, but I'm ok to change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

2 participants