Releases: peczenyj/ttempdir
Releases · peczenyj/ttempdir
release v0.4.0
V0.3.2
v0.3.1
v0.3.0
v0.2.2
v0.2.1
v0.2.0
first working version
this version search for
os.TempDir
os.MkdirTemp
ioutil.TempDir
on golang test and suggests to use the equivalent TempDir()
from testing package, like https://pkg.go.dev/testing#T.TempDir
TempDir returns a temporary directory for the test to use. The directory is automatically removed when the test and all its subtests complete. Each subsequent call to t.TempDir returns a unique directory; if the directory creation fails, TempDir terminates the test by calling Fatal.
this is much more robust and we don't need to care about remove things after the test
initial release
this linter searchs for os.MkdirTemp
and ioutil.TempDir
and suggests change to use t.TempDir
based on https://github.com/sivchari/tenv