dapphub / dapphub/dapptools

mktemp: mkdtemp failed on -p: File exists

Open
#872 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2.1k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

```
$ seth debug 0xf6302f3d2cbc1bae874becfb8342802dcda981eaef55f5df0c22c6a737bd78c2
mktemp: mkdtemp failed on -p: File exists
mktemp: mkdtemp failed on /tmp: File exists
```

Looks like it's caused by https://github.com/dapphub/dapptools/blob/master/src/seth/libexec/seth/seth-debug#L12 and https://github.com/dapphub/dapptools/blob/master/src/seth/libexec/seth/seth-debug#L33

Mac version of `mktemp` doesn't seem to have `-p` option and it's marked as deprecated here https://linux.die.net/man/1/mktemp

Contributor guide

No contributing guide indexed for this repository

Research direction

Read src/seth/libexec/seth/seth-debug at the referenced lines and run the reported `seth debug 0xf6302f3d2cbc1bae874becfb8342802dcda981eaef55f5df0c22c6a737bd78c2` command. Check how the two mktemp calls use `-p`, then verify the command no longer reports the macOS `mkdtemp` errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.