Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Updates to dependencies #4

Merged
merged 2 commits into from
Sep 15, 2020
Merged

Updates to dependencies #4

merged 2 commits into from
Sep 15, 2020

Conversation

warpfork
Copy link
Contributor

@warpfork warpfork commented Sep 8, 2020

Propagating some updates to go-ipld-prime interfaces and exported symbols through this repo.

One commit for each of the version jumps: one for v0.4.0, and one for v0.5.0. See commit messages for details.

Externally apparently semantics should be more or less unchanged.

Updated the gen/main.go systems to new codegen;
they compile, but I have not exercised them.
IIUC, reapplying codegen in this package may require additional
manual intervention afterwards.  My goal in this diff is to move
forward the version of go-ipld-prime so that transitive dependencies
on passing through this library can be happier; it is not necessary
for me to reapply codegen today in order to accomplish this.
This is mostly applying renames to methods changed upstream.

Roughly:

sed s/NodeStyle/NodePrototype/g
sed s/IsUndefined/IsAbsent/g
sed s/LookupIndex/LookupByIndex/g
sed s/LookupString/LookupByString/g
sed s/LookupSegment/LookupBySegment/g
sed 's/Lookup(/LookupByNode(/g'
sed 's/Style(/Prototype(/g'
sed 's/ipld\.Undef/ipld\.Absent/g'

... and thereafter I fixed a few style/prototype references manually,
because there were two syntaxes used to access them, inconsistently,
and I figured I'd leave this slightly better than I found it.

I didn't attempt to update variables (typically, "ns"->"np").
Some cleanup on that in the future might feel desirable.
@codecov
Copy link

codecov bot commented Sep 8, 2020

Codecov Report

Merging #4 into master will not change coverage.
The diff coverage is 8.11%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master       #4   +/-   ##
=======================================
  Coverage   23.22%   23.22%           
=======================================
  Files           7        7           
  Lines         797      797           
=======================================
  Hits          185      185           
  Misses        596      596           
  Partials       16       16           
Impacted Files Coverage Δ
raw_node_gen.go 5.00% <0.00%> (ø)
pb_node_gen.go 12.37% <3.71%> (ø)
nodestyles.go 16.05% <11.12%> (ø)
node_builder_chooser.go 83.34% <100.00%> (ø)

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 ae0aea0...da0ab5c. Read the comment docs.

@hannahhoward hannahhoward merged commit 38f5640 into master Sep 15, 2020
@aschmahmann aschmahmann mentioned this pull request Feb 18, 2021
73 tasks
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.

2 participants