Skip to content

Don't expand tilde in REZ_USED_IMPLICIT_PACKAGES and REZ_USED_REQUEST environment variables - #1760

Merged
JeanChristopheMorinPerso merged 2 commits into
AcademySoftwareFoundation:mainfrom
cfxegbert:fix_rez_used_implicit_packages
Jun 22, 2024
Merged

JeanChristopheMorinPerso merged 2 commits into
AcademySoftwareFoundation:mainfrom
cfxegbert:fix_rez_used_implicit_packages

Conversation

@cfxegbert

@cfxegbert cfxegbert commented May 17, 2024 •

Copy link
Copy Markdown
Contributor

Fixes #1717

fix: do not perform tilde expandsion on REZ_USED_IMPLICIT_PACKAGES
@cfxegbert
cfxegbert requested a review from a team as a code owner May 17, 2024 23:18
@codecov

codecov Bot commented May 17, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.40%. Comparing base (a13f7bb) to head (668ed7a).
Report is 25 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1760      +/-   ##
==========================================
- Coverage   58.41%   58.40%   -0.01%     
==========================================
  Files         126      126              
  Lines       17163    17165       +2     
  Branches     3506     3506              
==========================================
+ Hits        10025    10026       +1     
- Misses       6473     6474       +1     
  Partials      665      665              

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

@JeanChristopheMorinPerso JeanChristopheMorinPerso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for submitting this PR @cfxegbert! It looks good to me. Though, I'm wondering if we should be more aggressive and do the same with the other variables too or at least on REZ_USED_REQUEST since it's totally valid to do rez-env mypackage '~otherpackage'.

@JeanChristopheMorinPerso JeanChristopheMorinPerso added this to the Next milestone Jun 22, 2024
Comment thread src/rez/resolved_context.py Outdated
Signed-off-by: Jean-Christophe Morin <38703886+JeanChristopheMorinPerso@users.noreply.github.com>
@JeanChristopheMorinPerso

Copy link
Copy Markdown
Member

Pushed a change to make REZ_USED_REQUEST literal.

@JeanChristopheMorinPerso JeanChristopheMorinPerso changed the title Fix for tilde expansion on REZ_USED_IMPLICIT_PACKAGES Don't expand tilde in REZ_USED_IMPLICIT_PACKAGES and REZ_USED_REQUEST environment variables Jun 22, 2024
@JeanChristopheMorinPerso
JeanChristopheMorinPerso merged commit 704eb71 into AcademySoftwareFoundation:main Jun 22, 2024
@cfxegbert
cfxegbert deleted the fix_rez_used_implicit_packages branch May 25, 2026 21:49
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.

REZ_USED_IMPLICIT_PACKAGES tilde expansion on windows

2 participants