Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
docs: document issue with direnv and nix-shell on macOS (#15990)
workaround and a link to the direnv issue.
  • Loading branch information
paulroub authored Jan 2, 2025
commit d10d9b5304b7ef40464241c949d34fbc2c61e1f5
7 changes: 7 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ direnv: export +AR +AS +CC +CONFIG_SHELL +CXX +HOST_PATH +IN_NIX_SHELL +LD +NIX_
🎉
```

> **Note:** On macOS, a [direnv bug](https://github.com/direnv/direnv/issues/1345) can cause `nix-shell` to fail to build or run `coder`. If you see `error: creating directory` when attempting to run, build, or test, adding one line to your `.envrc` should fix the problem:

```shell
use nix
mkdir -p "$TMPDIR"
```

Alternatively if you do not want to use nix then you'll need to install the need
the following tools by hand:

Expand Down
Loading