Skip to content

fix incorrect diff due to depleted buffer with -o flag#87

Merged
jakecoffman merged 1 commit intomainfrom
jakecoffman/fix-incorrect-diff
Apr 5, 2023
Merged

fix incorrect diff due to depleted buffer with -o flag#87
jakecoffman merged 1 commit intomainfrom
jakecoffman/fix-incorrect-diff

Conversation

@jakecoffman
Copy link
Member

When running a CLI test, it generates a diff at the end of the run if a file was provided as input.

However if using a -o flag, the buffer which stored the output from the run was being read from to write the file, then the next step which generates the diff got an empty buffer.

This fixes it by passing around a byte slice instead of a buffer.

@jakecoffman jakecoffman requested a review from a team as a code owner April 5, 2023 13:50
Copy link
Collaborator

@brrygrdn brrygrdn left a comment

Choose a reason for hiding this comment

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

🚀

@jakecoffman jakecoffman merged commit f84cc96 into main Apr 5, 2023
@jakecoffman jakecoffman deleted the jakecoffman/fix-incorrect-diff branch April 5, 2023 14:02
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.

2 participants