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 suboptimal incremental build due to faulty CompareFiles task #826

Merged
merged 1 commit into from Sep 25, 2022

Conversation

AArnott
Copy link
Collaborator

@AArnott AArnott commented Sep 25, 2022

The task was faulty because it assumed Stream.Read would fill the buffer if at all possible.

Fixes #825

@AArnott AArnott added this to the v3.5 milestone Sep 25, 2022
@AArnott AArnott linked an issue Sep 25, 2022 that may be closed by this pull request
It's a cheap fix, in that it gives up streaming during the compare, but it's far more likely to be accurate than if I tried to maintain streaming while fixing the original bug of assuming that `Stream.Read` will always fill the buffer.

Fixes #825
@AArnott AArnott changed the title Remove faulty CompareFiles task Fix suboptimal incremental build due to faulty CompareFiles task Sep 25, 2022
@AArnott AArnott merged commit 31365e4 into v3.5 Sep 25, 2022
@AArnott AArnott deleted the fix825 branch September 25, 2022 15:28
brighid-bot added a commit to cythral/brighid-commands that referenced this pull request Mar 29, 2023
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[Nerdbank.GitVersioning](https://togithub.com/dotnet/Nerdbank.GitVersioning)
| nuget | patch | `3.5.113` -> `3.5.119` |

---

### Release Notes

<details>
<summary>dotnet/Nerdbank.GitVersioning</summary>

###
[`v3.5.119`](https://togithub.com/dotnet/Nerdbank.GitVersioning/releases/v3.5.119)

#### What's Changed

- Add GetTargetPath target for SqlServer projects by
[@&#8203;AArnott](https://togithub.com/AArnott) in
dotnet/Nerdbank.GitVersioning#821
- Fix suboptimal incremental build due to faulty CompareFiles task by
[@&#8203;AArnott](https://togithub.com/AArnott) in
dotnet/Nerdbank.GitVersioning#826
- Update NuGet.PackageManagement to 6.3.1 by
[@&#8203;AArnott](https://togithub.com/AArnott) in
dotnet/Nerdbank.GitVersioning#851

**Full Changelog**:
dotnet/Nerdbank.GitVersioning@v3.5.113...v3.5.119

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click
this checkbox.

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).
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.

IsContentOfFilesTheSame assumes full Stream.Read
1 participant