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

Fix the regex bug for env variables #6514

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sudo-arash
Copy link

@sudo-arash sudo-arash commented Sep 20, 2024

What's the problem this PR addresses?

The bug is that, If your ENV variable needs to have a value with ${} in it, yarn will error:

Usage Error: Environment variable not found 

on windows.

Related issue: #6491

How did you fix it?

I simply updated the regex and the way the variable variableValue is validated.

Checklist

  • I have read the Contributing Guide.

  • I have set the packages that need to be released for my changes to be effective.

  • I will check that all automated PR checks pass before the PR gets reviewed.

@sudo-arash sudo-arash changed the title Fixed bug #6491 Fixed the regex bug for env variables Sep 20, 2024
@sudo-arash sudo-arash changed the title Fixed the regex bug for env variables Fix the regex bug for env variables Sep 20, 2024
@arcanis
Copy link
Member

arcanis commented Oct 2, 2024

Thanks! Can you add a test?

@sudo-arash
Copy link
Author

Hi

Thanks for the comment! I sadly don't know Type Script nor JavaScript tests. But I do know python ones(Unit tests).

Sincerely,
Arash

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.

2 participants