Skip to content

Fix suboptimal incremental build due to faulty CompareFiles task#826

Merged
AArnott merged 1 commit into
v3.5from
fix825
Sep 25, 2022
Merged

Fix suboptimal incremental build due to faulty CompareFiles task#826
AArnott merged 1 commit into
v3.5from
fix825

Conversation

@AArnott

@AArnott AArnott commented Sep 25, 2022

Copy link
Copy Markdown
Collaborator

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
Comment thread src/Nerdbank.GitVersioning.Tasks/build/Nerdbank.GitVersioning.targets Outdated
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 enabled auto-merge September 25, 2022 15:11
@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