You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some issues with mktemp coreutils command on Windows #2596
Upon running task example, I see the following on Windows 11:
🕙 [ 11:36:51 AM ] ❯ task example
task: [example] mktemp -d
task: Failed to run task "example": GetFileAttributesEx /tmp: The system cannot find the file specified.
Furthermore, when executing mktemp --help via the same task, I see:
Usage: mktemp [options] [template]
-d Make a directory (shorthand)
-directory
Make a directory
-dry-run
Do everything save the actual create
-p string
Tmp directory to use. If this is not set, TMPDIR is used, else /tmp (shorthand)
-prefix string
add a prefix
-q Quiet: show no errors (shorthand)
-quiet
Quiet: show no errors
-s string
add a prefix (shorthand, 's' is for compatibility with GNU mktemp
-suffix string
add a suffix to the prefix (rather than the end of the mktemp file)
-tmpdir string
Tmp directory to use. If this is not set, TMPDIR is used, else /tmp
-u Do everything save the actual create (shorthand)
task: Failed to run task "example": flag: help requested
I expected two differences:
The appropriate temp directory on Windows should have been used by default (exposed via the $TEMP env var)
The help should have shown -- before each option instead of a single - which doesn't work correctly
Here is the issue @trulede mentioned: u-root/u-root#3480. It seems clear that this is indeed a defect in u-boot, and the solution described is straightforward and trivial. Nonetheless, that report was closed by @binjip978 with the statement:
not planned
So it seems that this issue will not be resolved by the defect in the u-boot codebase being fixed.
Here is the issue @trulede mentioned: u-root/u-root#3480. It seems clear that this is indeed a defect in u-boot, and the solution described is straightforward and trivial. Nonetheless, that report was closed by @binjip978 with the statement:
not planned
So it seems that this issue will not be resolved by the defect in the u-boot codebase being fixed.
Definitely a bit of a shame, especially as no reason was given. I do believe the way the flags are implemented is incorrect as it does not comply with POSIX standards.
In saying all of this, the current implementation is functional, albeit not ideal.
When I get a free moment, I may look at it myself and submit a PR in case that helps.
Activity
trulede commentedon Jan 7, 2026
Thanks @fgimian I think its an issue with the u-root library, so I opened an issue there.
per1234 commentedon Sep 22, 2026
Here is the issue @trulede mentioned: u-root/u-root#3480. It seems clear that this is indeed a defect in u-boot, and the solution described is straightforward and trivial. Nonetheless, that report was closed by @binjip978 with the statement:
So it seems that this issue will not be resolved by the defect in the u-boot codebase being fixed.
fgimian commentedon Sep 23, 2026
Definitely a bit of a shame, especially as no reason was given. I do believe the way the flags are implemented is incorrect as it does not comply with POSIX standards.
In saying all of this, the current implementation is functional, albeit not ideal.
When I get a free moment, I may look at it myself and submit a PR in case that helps.
Thanks so much for following this up!
Cheers
Fotis
vmaerten commentedon Nov 29, 2026
It'll be fixed in the next release (by #3107)
fgimian commentedon Nov 29, 2026
Thanks you so much!