Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Add git resolver #97

Merged
merged 2 commits into from
Sep 2, 2017
Merged

Add git resolver #97

merged 2 commits into from
Sep 2, 2017

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Sep 2, 2017

Depends on ipld/js-ipld-git#1

package.json Outdated
@@ -53,6 +53,7 @@
"ipld-dag-cbor": "~0.11.1",
"ipld-dag-pb": "~0.11.0",
"ipld-eth-star": "^1.4.1",
"ipld-git": "file:../js-ipld-git",
Copy link
Member

Choose a reason for hiding this comment

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

woa, this one is new to me. I never saw a file: in a package.json. This is almost like gx-rw

Copy link
Member

Choose a reason for hiding this comment

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

Once the changes requested in ipld-git are done, let's update this line

Copy link
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

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

LGTM! Mind adding an example to https://github.com/ipfs/js-ipfs/tree/master/examples/traverse-ipld-graphs ?

Also, would you like to give a demo in the next IPFS all hands?

package.json Outdated
@@ -53,6 +53,7 @@
"ipld-dag-cbor": "~0.11.1",
"ipld-dag-pb": "~0.11.0",
"ipld-eth-star": "^1.4.1",
"ipld-git": "file:../js-ipld-git",
Copy link
Member

Choose a reason for hiding this comment

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

Once the changes requested in ipld-git are done, let's update this line

@daviddias
Copy link
Member

@magik6k tests are not happy, wanna check?

@magik6k
Copy link
Contributor Author

magik6k commented Sep 2, 2017

Travis fails on node 4 as it doesn't support spread operator (https://travis-ci.org/ipld/js-ipld-resolver/jobs/271251389#L3638)

Circle is.. interesting, looks like ipldGit.util.cid returns invalid CID or that error assert is ignored (which it probably isn't). It passes for me locally. My only theory is that old multicodec package is cached here. @diasdavid would that make sense?

@daviddias
Copy link
Member

Travis fails on node 4 as it doesn't support spread operator (https://travis-ci.org/ipld/js-ipld-resolver/jobs/271251389#L3638)

Going to remove the support for it in Master and then you can rebase.

My only theory is that old multicodec package is cached here. @diasdavid would that make sense?

When that happens, just give it a kick :)

image

@daviddias
Copy link
Member

@magik6k ok, you can rebase now d9069c8

@magik6k
Copy link
Contributor Author

magik6k commented Sep 2, 2017

@diasdavid CI looks happier

@@ -64,6 +65,10 @@ class IPLDResolver {
dagCBOR.resolver,
dagCBOR.util)

this.support.add(ipldGit.resolver.multicodec,
ipldGit.resolver,
ipldGit.util)
Copy link
Member

Choose a reason for hiding this comment

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

🌟🌟🌟🌟🌟🌟

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