# nix: Allow auto-update in the devshell \(\#26911\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/22d905dc0334b4efb5e5c44302244510447d3a45)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 22d905dc0334b4efb5e5c44302244510447d3a45

Requested commit: 22d905dc0334b4efb5e5c44302244510447d3a45

Commit: 22d905dc0334b4efb5e5c44302244510447d3a45

Tree: fe22291cd0310af522aaccc0996b403e426c91ca

Author: Julia Ryan

Committer: GitHub

## Message

```
nix: Allow auto-update in the devshell (#26911)

Our direnv integration was making zed refuse to auto-update when you had
the zed repo open with the devshell active. This was happening even when
you used a non-nix build of zed, which actually should be able to
auto-update.

I'm a bit unsure of why we check for the `ZED_UPDATE_EXPLANATION` env
var [both at build time _and_ at
runtime](https://github.com/zed-industries/zed/blob/2828dcb67b0427bb64dd7c350896673ff6a14782/crates/auto_update/src/auto_update.rs#L149),
but I can see an argument for why people might want that so I'll just do
the less intrusive change for now and leave the var out of the devshell.

Release Notes:

- N/A
```

## Parents

- [bf735da3f265ebc7a3902b2e87acd87a1bd3407a](https://git.cafe/gitcafe/zed/commit/bf735da3f265ebc7a3902b2e87acd87a1bd3407a?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/22d905dc0334b4efb5e5c44302244510447d3a45?format=markdown)
