# remote: Set current_dir for cargo zigbuild cross-compilation \(\#53951\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ac02b1bf24098f22091401426faac38123535ac1

Requested commit: ac02b1bf24098f22091401426faac38123535ac1

Commit: ac02b1bf24098f22091401426faac38123535ac1

Tree: 45fbedb75d71b9ab6845df1208c16041e11bf14c

Author: Toni Alatalo

Committer: GitHub

## Message

```
remote: Set current_dir for cargo zigbuild cross-compilation (#53951)

## Summary

- The cross-compile path for building `remote_server` via `cargo
zigbuild` was missing `.current_dir()`, causing it to inherit the
process cwd
- This fails with "cannot specify features for packages outside of
workspace" when Zed is launched from outside its source tree
- The native build path at the same location already sets
`.current_dir()` correctly — this aligns the cross-compile path

Closes #53950

## Test plan

- [x] Build Zed from source
- [x] Launch from `/tmp`: `cd /tmp && /path/to/zed some-project
--dev-container`
- [x] Verify dev container cross-compilation succeeds

Release Notes:

- Fixed dev container cross-compilation failing when Zed is launched
from outside its source directory

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
```

## Parents

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

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