onelson / estuary

33 stars 8 forks source link

Add publish, yank, unyank functions to index module. #2

Closed onelson closed 3 years ago

onelson commented 3 years ago

These functions only deal with updating the index. For operations like publish, there are certainly .crate files to be managed on disk, but that isn't happening here. This code is only concerned with updating the registry index itself.

Likely these operations should be done as the last step when publishing since the index controls the visibility of the package to clients.

codecov[bot] commented 3 years ago

Codecov Report

Merging #2 (7dbf155) into main (54f1932) will increase coverage by 3.33%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #2      +/-   ##
==========================================
+ Coverage   93.71%   97.04%   +3.33%     
==========================================
  Files           2        2              
  Lines         159      338     +179     
==========================================
+ Hits          149      328     +179     
  Misses         10       10              
Impacted Files Coverage Δ
src/index.rs 98.20% <100.00%> (+2.07%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 54f1932...7dbf155. Read the comment docs.