Commit Graph

4 Commits

Author SHA1 Message Date
Julio López
e3fc6e012d refactor(general): leverage os.CreateTemp (#4513)
* use `os.CreateTemp` in `tempfile.CreateAutoDelete`
* refactor `TestTempFile`: add `VerifyTempfile` test helper
* add test for `createUnixFallback`
* rename function to `tempfile.CreateAutoDelete`
* remove the `dir` parameter to `tempfile.CreateAutoDelete`,
  only an empty string was passed, apart from test cases.
* guard against panic in TestShadowCopy
2025-04-22 20:55:11 -07:00
Julio López
97ff2a17fb fix(general): tempfile.Create on Linux (x64/arm64) (#4504)
- Add `TestCreateSucceedsWhenDirIsNotSpecified`
- Use `os.TempDir` when `dir` is not specified (empty string)

Ref:
- Fixes #4331
- Fixes #2415
2025-04-15 22:21:57 -07:00
Jarek Kowalski
dcf6d1c2e1 feat(general): always try O_TMPFILE on Linux when creating temporary files (#2407) 2022-09-14 09:48:02 -07:00
Jarek Kowalski
33fa5cbd50 feat(general): added tempfile package (#2402)
* feat(general): added tempfile package

* use tempfile.Create() in bigmap
2022-09-14 05:37:47 +00:00