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

Feat: Separate "path" from "path/resolver" #4713

Merged
merged 1 commit into from
Feb 20, 2018

Conversation

hsanjuan
Copy link
Contributor

Currently the "path" module does two very different things:

  • Defines how ipfs paths look like and provides tools to parse/split etc.
  • Provides a resolver to resolve paths.

This moves the resolver stuff to path/resolver and leaves the
path utilities in path.

The result is that now the IPFS path is a free module
that can be exported without problems and with that we remove circular
dependency cycles (resolve_test -> merkledag/utils, merkledag->path),
which do prevent exportation of merkledag itself.

License: MIT
Signed-off-by: Hector Sanjuan [email protected]

Currently the "path" module does two very different things:

* Defines how ipfs paths look like and provides tools to parse/split etc.
* Provides a resolver to resolve paths.

This moves the resolver stuff to `path/resolver` and leaves the
path utilities in `path`.

The result is that now the IPFS `path` package just defines what a path
looks like and becomes a module that can be exported/re-used without problems.
Currently there are circular dependency cycles (resolve_test -> merkledag/utils,
merkledag->path), which the prevent the export of merkledag itself.

License: MIT
Signed-off-by: Hector Sanjuan <[email protected]>
@ghost ghost assigned hsanjuan Feb 15, 2018
@ghost ghost added the status/in-progress In progress label Feb 15, 2018
@whyrusleeping whyrusleeping merged commit 2ee4543 into master Feb 20, 2018
@whyrusleeping whyrusleeping deleted the feat/split-path-resolver branch February 20, 2018 17:55
@ghost ghost removed the status/in-progress In progress label Feb 20, 2018
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.

3 participants