-
Notifications
You must be signed in to change notification settings - Fork 79
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
SFDX replacements: not able to replace with blank value #2070
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
oh, interesting. Would an empty string |
@mshanemc I'm not the OP but I can confirm this works with a string that contains a space, like this
However, if it's a real entry empty string, like this
The command fails with
|
Well not for my (Mac). |
ugh. The downside of changing this would be making it hard to detect the very real mistake of missing envs, which seems backward. The "cleanest" thing might be to have a new json prop in the |
Thank you for filing this feature request. We appreciate your feedback and will review the feature at our next grooming or sprint planning session. We prioritize feature requests with more upvotes and comments. |
This issue has been linked to a new work item: W-13047969 |
I'm on a mac using zsh and both of these worked for me in replacements:
Maybe this is specific to the shell? Regardless, the fix will resolve an env var that is not found as an empty string (when explicitly set in the replacements section) |
This is now in the latest CLIs: sfdx 7.208.10 / sf 1.85.8 |
Im using the replacements feature, all work as expected only issue i cannot replace some text with blank value.
My use case is to replace NameSpace prefix with blank in order to deploy my code to another environment that do not have NameSpace .
Here is an example :
.env
BLANK =
My cli commend is
dotenv -e .env sfdx force source push
which results with :
The text was updated successfully, but these errors were encountered: