Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@harmony7
Copy link
Member

@harmony7 harmony7 commented Sep 9, 2025

Change summary

This PR updates MarshalTOML() for manifest/File such that the [local_server.pushpin] section and its fields persist when the file is written.

  • The pushpin section as well as its individual fields are now optional, such that it will be able to persist the file back as it was before starting.
  • [local_server.pushpin] has been added to fastly-viceroy-update.toml, which is used by the test TestManifestPersistsLocalServerSection, ensuring that the section is written out and reads back in to the same value.

This fixes #1532.

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Changes to Core Features:

  • Have you successfully run tests with your changes locally?

User Impact

  • What is the user impact of this change?

Users can now safely run CLI commands that modify fastly.toml without losing their [local_server.pushpin] section.

Are there any considerations that need to be addressed for release?

Since this overwrite happens right after initializing an app from the starter kit, this would be nice to get out asap.
Would be great if this can be released as a quick patch release such as 11.5.1.

@harmony7 harmony7 requested a review from a team as a code owner September 9, 2025 05:47
@harmony7 harmony7 requested a review from rcaril September 9, 2025 05:47
Copy link
Contributor

@rcaril rcaril left a comment

Choose a reason for hiding this comment

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

The changes looks good to me.

@rcaril rcaril merged commit d8c01ef into main Sep 9, 2025
12 checks passed
@rcaril rcaril deleted the kats/manifest-update-pushpin branch September 9, 2025 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Updating fastly.toml loses local_server.pushpin section

3 participants