Skip to content
This repository was archived by the owner on Apr 23, 2024. It is now read-only.

Add SymbolChecksum header to HttpRequest - #103

Merged
mikem8361 merged 9 commits into
dotnet:masterfrom
nosami:symbol-checksum
Jul 11, 2019
Merged

mikem8361 merged 9 commits into
dotnet:masterfrom
nosami:symbol-checksum

Conversation

@nosami

@nosami nosami commented Jul 2, 2019 •

Copy link
Copy Markdown
Contributor

Fixes #102

image

@mikem8361

mikem8361 commented Jul 2, 2019 via email

Copy link
Copy Markdown

@nosami
nosami force-pushed the symbol-checksum branch from 4ce8b66 to 11f0461 Compare July 3, 2019 12:50
@gregg-miskelly

Copy link
Copy Markdown
Contributor

Aside from needing to add validation or a validation call back, these changes look good to me.

@mikem8361

Copy link
Copy Markdown

LGTM.

@nosami

nosami commented Jul 3, 2019

Copy link
Copy Markdown
Contributor Author

Yeah... I will add the validation, I just got sidetracked with other stuff. I will see how easy it would be to add it in here first.

@nosami
nosami force-pushed the symbol-checksum branch 3 times, most recently from bf03dea to fb0c8d0 Compare July 4, 2019 18:15
@nosami

nosami commented Jul 4, 2019

Copy link
Copy Markdown
Contributor Author

OK. I think this is ready for another 👀

@nosami
nosami force-pushed the symbol-checksum branch from fb0c8d0 to 0bad54f Compare July 4, 2019 18:23

@gregg-miskelly gregg-miskelly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Otherwise LGTM

@nosami

nosami commented Jul 8, 2019

Copy link
Copy Markdown
Contributor Author

Addressed feedback.

@nosami
nosami force-pushed the symbol-checksum branch from dad0a52 to af9901b Compare July 8, 2019 10:32

@gregg-miskelly gregg-miskelly left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

@nosami

nosami commented Jul 8, 2019

Copy link
Copy Markdown
Contributor Author

I put the stream copy code back in place as it was needed. One stream has the zeroed bytes for the checksum and the other is the unaltered bytes ready to be written to disk.

I guess alternatively, I could put the signature bytes back into the byte array before writing to disk?

@nosami
nosami force-pushed the symbol-checksum branch from e3f615d to d6d9f6f Compare July 8, 2019 19:13
@nosami

nosami commented Jul 8, 2019

Copy link
Copy Markdown
Contributor Author

OK, it works after the last commit :)

@nosami
nosami force-pushed the symbol-checksum branch from d6d9f6f to 88c9dcd Compare July 8, 2019 19:15
@nosami
nosami force-pushed the symbol-checksum branch from 88c9dcd to 0ed3d58 Compare July 8, 2019 19:22
@gregg-miskelly

Copy link
Copy Markdown
Contributor

I am very confused why Stream.Read decided to change the underlying stream to hold a reference to bytes rather than just copying its data out to bytes. But whatever, your fix certainly works.

@mikem8361

Copy link
Copy Markdown

Are we ready to merge this?

@nosami

nosami commented Jul 11, 2019

Copy link
Copy Markdown
Contributor Author

This PR is working for me in VSMac.

@mikem8361
mikem8361 merged commit 171f5de into dotnet:master Jul 11, 2019
@mikem8361

Copy link
Copy Markdown

The new version of the Microsoft.SymbolStore package 1.0.0-dev-64311-01 on https://dotnet.myget.org/F/symstore/api/v2 feed.

I'll try to get a new version of the dotnet-symbol global tool up on nuget but it may be a bit.

@mikem8361

Copy link
Copy Markdown

The new dotnet-symbol has been published to nuget. Either do:

dotnet tool update -g dotnet-symbol

or

dotnet tool install -g dotnet-symbol 

if the first time.

@nosami
nosami deleted the symbol-checksum branch July 13, 2019 10:11
@nosami

nosami commented Jul 13, 2019

Copy link
Copy Markdown
Contributor Author

Thanks everyone for helping me get this across the line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SymClient returns 403 Forbidden when downloading symbols from NuGet

4 participants