-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
dotnet: january 2025 releases #374284
base: master
Are you sure you want to change the base?
dotnet: january 2025 releases #374284
Conversation
stdout was being lost, but it could contain important information about failures.
This stops incorrect paths from being used when run in a temporary worktree by maintainers/scripts/update.nix.
|
@@ -77,7 +78,9 @@ async def run_update_script(nixpkgs_root: str, merge_lock: asyncio.Lock, temp_di | |||
eprint(f"--- SHOWING ERROR LOG FOR {package['name']} ----------------------") | |||
eprint() | |||
eprint(e.stderr.decode('utf-8')) | |||
with open(f"{package['pname']}.log", 'wb') as logfile: | |||
with open(f"{package['pname']}.out.log", 'wb') as logfile: |
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.
@jtojnar would you mind taking a look at this commit? It was useful for me to debug dotnet stuff which often writes to stdout.
I had originally omitted the .log extension, but it's in .gitignore
, so I decided to keep it.
I think ideally this would write both streams to a single temporary log file, but that's likely a bigger change. I can drop this commit if anyone has any concerns.
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.
Everything on the dotnet side looks fine. 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.
Everything on the dotnet side looks fine. LGTM!
|
This also fixes some problems I found with the update scripts.
Cc: @NixOS/dotnet
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.