gotestyourself / gotestyourself/gotest.tools

Follow symlinks in fs temp paths?

Open
#202 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
576
Forks
54
Avg merge
6d 3h
Merged PRs (30d)
2

Description

On OSX, the default temp dir includes a symlink, this means that if you generate a temporary file, and then pass its path into a function which follows links, then assertions you try and make on matching names won't pass.

Would it be reasonable to have `fs.NewDir` and `fs.NewFile` expand to real paths before returning?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.