Skip to content

chore(internal/aliasfix): properly truncate and backup files#6637

Merged
codyoss merged 1 commit intogoogleapis:mainfrom
codyoss:aliasfix-trunc
Sep 8, 2022
Merged

chore(internal/aliasfix): properly truncate and backup files#6637
codyoss merged 1 commit intogoogleapis:mainfrom
codyoss:aliasfix-trunc

Conversation

@codyoss
Copy link
Copy Markdown
Member

@codyoss codyoss commented Sep 8, 2022

  • Use os.Create to truncate existing file if needed
  • Use named imports to capture error
  • Create a bak incase anything goes wrong. We don't want to delete peoples code :)
  • Bubble up error if any from WalkDir

- Use os.Create to truncate existing file if needed
- Use named imports to capture error
- Create a bak incase anything goes wrong. We don't want to delete
  peoples code :)
@codyoss codyoss requested a review from a team September 8, 2022 20:54
@product-auto-label product-auto-label Bot added the size: m Pull request size is medium. label Sep 8, 2022
Copy link
Copy Markdown
Contributor

@noahdietz noahdietz left a comment

Choose a reason for hiding this comment

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

Cool, good idea on the bak

@codyoss codyoss added the automerge Merge the pull request once unit tests and other checks pass. label Sep 8, 2022
@codyoss codyoss merged commit 60e120c into googleapis:main Sep 8, 2022
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Sep 8, 2022
@codyoss codyoss deleted the aliasfix-trunc branch September 8, 2022 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants