-
Notifications
You must be signed in to change notification settings - Fork 51
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
Setting variable does not work when value has dash #65
Comments
Suffering from the same issue :( any workarounds or fixes? |
Using dotenv-cli v3.2.0 seems to fix this issue. |
Another workaround is intercepting the dotenv cli command with cross-env to manually pass additional command line arguments
|
We can improve this regex https://github.com/entropitor/dotenv-cli/blob/master/cli.js#L50 This is because of this security issue: #57 (comment) Feel free to create a PR to fix this |
You're just seeing the default value because you haven't set PUBLICPATH.
That's how it's supposed to work I think
…On Thu, 17 Mar 2022, 18:17 Moris rafol, ***@***.***> wrote:
I think the same bug applies here:
Input:
[image: image]
<https://user-images.githubusercontent.com/10247681/158856893-cd579c25-7f24-42f8-83dc-284c612c54ac.png>
Output:
[image: image]
<https://user-images.githubusercontent.com/10247681/158857001-5b7257d1-aa03-4fed-b7ba-8e9579fca1e2.png>
—
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG2YXJV55354FBIT5OFDHDVANSLNANCNFSM5NX4CTGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
yeah but
|
p.s. not sure if it's a bug for this package or dotenv-expand |
That's probably in dotenv-expand. This package is just a simple wrapper around that one... |
motdotla/dotenv-expand#70 |
Had a crack at a PR #69 |
For instance, setting
dotenv -v AWS_REGION=eu-west-1
gives you an error ofUnexpected argument AWS_REGION=eu-west-1. Expected variable in format variable=value
The text was updated successfully, but these errors were encountered: