Skip to content

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

Merged
maxnbk merged 3 commits intoAcademySoftwareFoundation:mainfrom
vanridal:1937-Gitbash-shells-cant-change-executable_fullpath-in-rezconfig.py-settings
May 15, 2025
Merged

Add ability to change the executable_fullpath setting for the gitbash shell plugin#1938
maxnbk merged 3 commits intoAcademySoftwareFoundation:mainfrom
vanridal:1937-Gitbash-shells-cant-change-executable_fullpath-in-rezconfig.py-settings

Conversation

@vanridal
Copy link
Contributor

@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
Contributor Author

vanridal commented Apr 4, 2025

@maxnbk

@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
Contributor 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.

@codecov
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 (6cdb847) to head (b546c8e).
⚠️ Report is 22 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       17219    17219              
  Branches     3017     3017              
==========================================
+ Hits        10209    10213       +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.

@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!

vanridal added 3 commits May 15, 2025 11:16
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 <george.ridal@findesign.com.au>
Signed-off-by: george.ridal <george.ridal@findesign.com.au>
Signed-off-by: george.ridal <george.ridal@findesign.com.au>
@maxnbk maxnbk force-pushed the 1937-Gitbash-shells-cant-change-executable_fullpath-in-rezconfig.py-settings branch from c66440e to b546c8e Compare May 15, 2025 15:16
@maxnbk maxnbk merged commit 685a5d3 into AcademySoftwareFoundation:main May 15, 2025
47 checks passed
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