eas env:pull
does not properly escape env variables which contain a #
#2813
Labels
eas env:pull
does not properly escape env variables which contain a #
#2813
Build/Submit details page URL
No response
Summary
I have an env variable which contains a hex color code, for example
#ffffff
When pulling using eas:pull it generates an env file containing
when parsing the env file (using dotenv) it treats the
#
as the start of a comment and ignores the rest of the line.as per the dotenv docs the value should be wrapped in quotes if it contains a
#
see: https://github.com/motdotla/dotenv#comments
Managed or bare?
Bare
Environment
expo-env-info 1.2.2 environment info:
System:
OS: macOS 15.1.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.5 - ~/.volta/tools/image/node/18.20.5/bin/node
Yarn: 1.22.19 - ~/.volta/tools/image/yarn/1.22.19/bin/yarn
npm: 10.8.2 - ~/.volta/tools/image/node/18.20.5/bin/npm
Managers:
CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 24.2, iOS 18.2, macOS 15.2, tvOS 18.2, visionOS 2.2, watchOS 11.2
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8512546
Xcode: 16.2/16C5032a - /usr/bin/xcodebuild
npmPackages:
expo: ^52.0.23 => 52.0.23
expo-router: ~4.0.15 => 4.0.15
react: 18.3.1 => 18.3.1
react-native: 0.76.5 => 0.76.5
Expo Workflow: bare
Error output
No response
Reproducible demo or steps to reproduce from a blank project
The generated
.env.local
will containTEST=#ffffff
and therefor will not properly load the env variable.Manually correcting the variable to be wrapped in quotes, like this`TEST="#ffffff" correctly loads the env variable.
The text was updated successfully, but these errors were encountered: