Skip to content

devbox shell wrapper fails when mktemp is installed in nix profile #5

@bketelsen

Description

@bketelsen

On an M1 mac with nix, my nix profile already has mktemp installed. The devbox shell wrapper is assuming the non-gnu version of mktemp, and fails with the cryptic error:

❯ devbox init
mktemp: too few X's in template ‘devbox’
→ Downloading version 0.0.2...
✘ Command failed (exit code 23): curl --fail --silent --location --output /devbox_0.0.2_darwin_arm64.tar.gz https://github.com/jetpack-io/devbox/releases/download/0.0.2/devbox_0.0.2_darwin_arm64.tar.gz

Google led me to a stackexchange answer that seems to be relevant.

I messed with the devbox shell script to try to force it to use the mac mktemp but didn't get far. Wanted to report this in case others had similar troubles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions