Skip to content
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

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

Conversation

cfxegbert
Copy link
Contributor

@cfxegbert cfxegbert commented May 17, 2024

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
Copy link

codecov bot commented May 17, 2024

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.

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.

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
Signed-off-by: Jean-Christophe Morin <38703886+JeanChristopheMorinPerso@users.noreply.github.com>
@JeanChristopheMorinPerso
Copy link
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
47 checks passed
Pixel-Minions added a commit to Pixel-Minions/rez that referenced this pull request Sep 26, 2024
… environment variables (AcademySoftwareFoundation#1760)

Signed-off-by: Robert Minsk <robertminsk@yahoo.com>
Signed-off-by: Jean-Christophe Morin <38703886+JeanChristopheMorinPerso@users.noreply.github.com>
Co-authored-by: Jean-Christophe Morin <38703886+JeanChristopheMorinPerso@users.noreply.github.com>
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