Skip to content

Add ability to change the executable_fullpath setting for the gitbash shell plugin #1938

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vanridal
Copy link

@vanridal vanridal commented Apr 4, 2025

changed to use super() methods so the inherited method will use GitBash.name(), via cls.name() to access config settings in rez.shells.Shell.find_executable()

Fixes #1937

@vanridal vanridal requested a review from a team as a code owner April 4, 2025 00:48
@vanridal vanridal force-pushed the 1937-Gitbash-shells-cant-change-executable_fullpath-in-rezconfig.py-settings branch from 5f4dec7 to 9bcc72c Compare April 4, 2025 00:50
@vanridal
Copy link
Author

vanridal commented Apr 4, 2025

@maxnbk

vanridal added 2 commits April 4, 2025 21:48
so the inherited method will use GitBash.name(), via cls.name() to access config settings in rez.shells.Shell.find_executable()

Signed-off-by: george.ridal <[email protected]>
@vanridal vanridal force-pushed the 1937-Gitbash-shells-cant-change-executable_fullpath-in-rezconfig.py-settings branch from 294b165 to 7ef0088 Compare April 4, 2025 10:49
@vanridal
Copy link
Author

vanridal commented Apr 4, 2025

Added test for config override of shell plugin executable

Copy link
Contributor

@maxnbk maxnbk left a comment

Choose a reason for hiding this comment

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

Very nice! Simple change and a test to cover. I've put this into the "Next" milestone, and I'll see if anything else makes sense to merge/release alongside as well.

Copy link

codecov bot commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.31%. Comparing base (5c15568) to head (c66440e).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1938      +/-   ##
==========================================
+ Coverage   59.28%   59.31%   +0.02%     
==========================================
  Files         126      126              
  Lines       17218    17218              
  Branches     3017     3017              
==========================================
+ Hits        10208    10212       +4     
+ Misses       6325     6322       -3     
+ Partials      685      684       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: george.ridal <[email protected]>
@maxnbk maxnbk added this to the Next milestone Apr 4, 2025
@JeanChristopheMorinPerso JeanChristopheMorinPerso changed the title Gitbash-shells-cant-change-executable_fullpath-in-rezconfig.py-settings Add ability to change the executable_fullpath setting for the gitbash shell plugin May 4, 2025
Copy link
Member

@JeanChristopheMorinPerso JeanChristopheMorinPerso left a comment

Choose a reason for hiding this comment

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

Thank you! I love the addition of the test!

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.

Gitbash shells cant change executable_fullpath in rezconfig.py settings
3 participants