Skip to content

Commit

Permalink
Implement new method Resolve of kopia's fs.Symlink
Browse files Browse the repository at this point in the history
We have a mock type in kanister that implements kopia's `fs.Symlink`
interface. Since this interface was recently modified to have a new
method the mock type that we have in Kanister started to not implement
that.
This commit makes sure that we add a dummy implementation of the
type.
  • Loading branch information
viveksinghggits committed Dec 9, 2024
1 parent 45596e4 commit 024557e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/virtualfs/symlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ var _ fs.Symlink = (*inmemorySymlink)(nil)
func (imsl *inmemorySymlink) Readlink(ctx context.Context) (string, error) {
panic("Symlinks not supported")
}

func (imsl *inmemorySymlink) Resolve(ctx context.Context) (fs.Entry, error) {
panic("Resolve for mock implementation is not supported")
}

0 comments on commit 024557e

Please sign in to comment.