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

Update deps for ADL selectors #20

Merged
merged 4 commits into from
Jan 13, 2022
Merged

Update deps for ADL selectors #20

merged 4 commits into from
Jan 13, 2022

Conversation

hannahhoward
Copy link
Collaborator

@hannahhoward hannahhoward commented Jan 10, 2022

Builds on #19 updated for latest ipld-prime with ADL selectors

Also adds some utilities for working with selectors and unixfs

if lsys.KnownReifiers == nil {
lsys.KnownReifiers = make(map[string]linking.NodeReifier)
}
lsys.KnownReifiers["unixfs"] = Reify
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe pull "unixfs" up to a constant?


// UnixFSPathSelector creates a selector for a file/path inside of a UnixFS directory
// if reification is setup on a link system
func UnixFSPathSelector(path string) datamodel.Node {
Copy link
Collaborator

Choose a reason for hiding this comment

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

cool!

@hannahhoward hannahhoward merged commit 1a8e71b into main Jan 13, 2022
@mvdan mvdan deleted the feat/update-deps branch January 20, 2022 16:25
hacdias pushed a commit to ipfs/boxo that referenced this pull request Jan 12, 2023
Update deps for ADL selectors

This commit was moved from ipfs/go-unixfsnode@1a8e71b
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