You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
clemyan
changed the title
[Bug?]: You cannot use ${x} in environment variable files
[Bug?]: Cannot use literal ${x} in environment variable files
Sep 13, 2024
clemyan
changed the title
[Bug?]: Cannot use literal ${x} in environment variable files
[Bug]: Cannot use literal ${x} in environment variable files
Sep 13, 2024
Self-service
Describe the bug
If your env variable needs to have a value with
${}
in it, yarn will error:Usage Error: Environment variable not found (endpoint)
To reproduce
create a env file with:
CYPRESS_DOWNLOAD_PATH_TEMPLATE="${endpoint}/${platform}-${arch}/cypress.zip"
Environment
Additional context
the problem is here:
berry/packages/yarnpkg-core/sources/miscUtils.ts
Line 470 in 10d16c3
I think it just needs a negative look behind for an escaping \ - which would match the behaviour of npm and setting variables in npmrc.
The text was updated successfully, but these errors were encountered: