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

Bump Pkg3 #27046

Merged
merged 8 commits into from
May 11, 2018
Merged

Bump Pkg3 #27046

merged 8 commits into from
May 11, 2018

Conversation

KristofferC
Copy link
Member

  • Downloads archives by treehash (content) instead of version name.
  • Fixes spammy progressbar in CI, fixes Excessive download progress output in CI logs #27040
  • Fixes a problem that dependencies for developed packages were merged with the dependencies in the registry for that version
  • Implements instantiate which just "realizes" a manifest without doing any resolving or anything. This is what you would if someone e.g. sent you their Project + Manifest and you want to have the same environment as them.
  • Fixes a problem with free when a registered package is added from a git repository.

KristofferC and others added 8 commits May 9, 2018 11:56
* fix pin on repo added packages

* more pin free fixes
* fix some printing inconsistencies
can be used to instantiate a manifest without going through the resolver
also, show warning in status output about non downloaded packages
* Download archives by tree hash instead of tag

Since we don't do any validation of the archives, downloading based on tag presents a potential security hole whereby a compromised repository retags a version.

This should fix that by downloading the archive for the tree directly. Note that the documentation (https://developer.github.com/v3/repos/contents/#get-archive-link) says that it should be a valid git reference, but using hashes seems to work as well.

* add note to method
@StefanKarpinski
Copy link
Member

Any reason not to merge?

@KristofferC KristofferC merged commit 749afcb into master May 11, 2018
@martinholters martinholters deleted the kc/bump_pkg3_8 branch May 12, 2018 10:05
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.

Excessive download progress output in CI logs
3 participants