Skip to content
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

fix: allow editing for platform.yaml #5515

Merged
merged 1 commit into from Nov 8, 2023

Conversation

stasadev
Copy link
Member

@stasadev stasadev commented Nov 8, 2023

The Issue

When testing Upsun, I copied the platform.yaml and checked its settings.
When I wanted to customize it, I removed the #ddev-generated line and ran ddev restart, but the file was reset.
That's because there is a second #ddev-generated in this file.

How This PR Solves The Issue

Removes # from the extra #ddev-generated.
Removes an extra line at the end of the file.
Adds a space between #set -x - to make it look like others # set -x in this file.

Manual Testing Instructions

  1. Use a regular DDEV binary (no need to generate a new binary for this PR)
  2. Run ddev start
  3. Edit .ddev/providers/platform.yaml - remove the #ddev-generated from the top.
  4. Run ddev stop - see that file is reset.
  5. Edit .ddev/providers/platform.yaml - remove the #ddev-generated from the top and edit the second entry of #ddev-generated on the third line to ddev-generated
  6. Run ddev start - see that file is not reset.

Automated Testing Overview

Related Issue Link(s)

Release/Deployment Notes

@stasadev stasadev requested a review from a team as a code owner November 8, 2023 20:45
@github-actions github-actions bot added the bugfix label Nov 8, 2023
@stasadev stasadev force-pushed the 20231108_stasadev_platform_yaml branch from ce11811 to fde8aa9 Compare November 8, 2023 20:47
@stasadev stasadev changed the title fix: allow editing for platform.yaml [skip ci] fix: allow editing for platform.yaml Nov 8, 2023
Copy link
Member

@rfay rfay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@rfay rfay merged commit a0e022e into ddev:master Nov 8, 2023
6 checks passed
@stasadev stasadev deleted the 20231108_stasadev_platform_yaml branch November 9, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants