Skip to content

Commit

Permalink
Fix tests, update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Aug 6, 2024
1 parent 5124433 commit 312a27f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The following emojis are used to highlight certain changes:

### Added

- support UnixFS 1.5 file mode and modification times

### Changed

- `go-libp2p` dependency updated to [v0.36 (release notes)](https://github.com/libp2p/go-libp2p/releases/tag/v0.36.1)
Expand Down
2 changes: 1 addition & 1 deletion examples/unixfs-file-cid/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func runClient(ctx context.Context, h host.Host, c cid.Cid, targetPeer string) (
return nil, err
}

unixFSNode, err := unixfile.NewUnixfsFile(ctx, dserv, nd)
unixFSNode, err := unixfile.NewUnixfsFile(ctx, dserv, nd, nil)
if err != nil {
return nil, err
}
Expand Down
4 changes: 2 additions & 2 deletions tar/extractor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ func TestSymlinkWithModTime(t *testing.T) {
}

entries := []tarEntry{
&dirTarEntry{path: "root", mtime: add5()},
&dirTarEntry{path: "root"},
&symlinkTarEntry{target: "child", path: "root/a", mtime: add5()},
&dirTarEntry{path: "root/child", mtime: add5()},
&dirTarEntry{path: "root/child"},
&fileTarEntry{path: "root/child/file1", buf: []byte("data")},
&symlinkTarEntry{target: "child/file1", path: "root/file1-sl", mtime: add5()},
}
Expand Down

0 comments on commit 312a27f

Please sign in to comment.