-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix thisroot.sh to properly remove previous ROOT version from paths #20645
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
Conversation
|
Ah yes, PRs with zero diff, so clean 😆 |
The second call to drop_from_path was using the original path variable instead of $newpath (result of first call), causing only the last transformation to be applied. This affected LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, SHLIB_PATH, LIBPATH, and PYTHONPATH. Fixes the issue where old_rootsys/lib was not being removed when switching ROOT versions. Co-authored-by: pcanal <[email protected]>
It is apparently work in progress with no feedback that the work is still 'being' done .. :( |
|
@copilot Have you completed work on this PR? |
Yes, the work is complete. The fix was committed in 0661c4b. The change ensures that when |
pcanal
left a comment
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.
LGTM.
ferdymercury
left a comment
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.
Nice, thanks for the fix.
Can copilot also prepare backport PRs for 6.34, 6.36 and 6.38 or shall I?
My plan is to ask it to do so ... as a capability test :) |
|
@copilot open PR to apply this change to the v6-38-00-patches, v6-36-00-patches and v6-34-00-patches branches. |
|
[Apparently @copilot stopped listening after the PR was merged] |
|
Follow up at #20655 |
…20645) * Fix thisroot.sh to properly remove previous ROOT version from paths The second call to drop_from_path was using the original path variable instead of $newpath (result of first call), causing only the last transformation to be applied. This affected LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, SHLIB_PATH, LIBPATH, and PYTHONPATH. Fixes the issue where old_rootsys/lib was not being removed when switching ROOT versions. Co-authored-by: pcanal <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: pcanal <[email protected]>
…20645) * Fix thisroot.sh to properly remove previous ROOT version from paths The second call to drop_from_path was using the original path variable instead of $newpath (result of first call), causing only the last transformation to be applied. This affected LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, SHLIB_PATH, LIBPATH, and PYTHONPATH. Fixes the issue where old_rootsys/lib was not being removed when switching ROOT versions. Co-authored-by: pcanal <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: pcanal <[email protected]>
…20645) * Fix thisroot.sh to properly remove previous ROOT version from paths The second call to drop_from_path was using the original path variable instead of $newpath (result of first call), causing only the last transformation to be applied. This affected LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, SHLIB_PATH, LIBPATH, and PYTHONPATH. Fixes the issue where old_rootsys/lib was not being removed when switching ROOT versions. Co-authored-by: pcanal <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: pcanal <[email protected]>
This Pull request:
Changes or fixes:
Since v6.34.00,
thisroot.shfails to remove paths from a previously sourced ROOT version. Thedrop_from_pathfunction stores results in$newpath, but when called twice in sequence, the second call was using the original path instead of$newpath:Fixed for:
LD_LIBRARY_PATH,DYLD_LIBRARY_PATH,SHLIB_PATH,LIBPATH,PYTHONPATHChecklist:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.