forked from Azure/azure-dev
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove infrastructure outputs from
.env
on azd down
The tool had logic to this, but it had been broken for a while due to a change in how `Environment.Save()` worked. In Azure#1667 we made a change such that when you save an environment, we would merge in new values from the existing .env file into the file we were saving, in case the .env file had been modified by an external hook. However, that logic did not take into account that we may have intentionally removed some values (to explicitly delete them) and if they already existed in the `.env` files, they should be removed as part of the save operation. To address this, we now track the deletes that we have preformed so we can replay them during saving. To prevent regressing again we also add an end to end test. Fixes Azure#2217
- Loading branch information
Showing
4 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters