Find a file
Sandro Meier bcaa1b5231
dev_container: Resolve compose service build args in Dockerfile expansion (#54270)
For docker-compose-based dev containers, build args live on the primary
compose service's `build.args`, not on `dev_container.build` (which is
`None` in the compose case). `expanded_dockerfile_content` only
consulted the latter, so `${…}` references in the service's Dockerfile —
e.g. `FROM ${BASE_IMAGE}` — were never substituted. Downstream callers
then invoked `docker inspect "${BASE_IMAGE}"` and `docker pull
"${BASE_IMAGE}"`, both of which fail and the dev container fails to
start.

A new unit test `test_expands_compose_service_args_in_dockerfile` mounts
a Dockerfile with `FROM ${BASE_IMAGE}` backed by a compose service whose
`build.args` define `BASE_IMAGE=test_image:latest`, and asserts both
`expanded_dockerfile_content` and `image_from_dockerfile` produce the
resolved reference.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed dev container startup failing for docker-compose configs whose
service Dockerfile uses build-arg substitution in the FROM line (for
example, `FROM ${BASE_IMAGE}`).
2026-04-21 16:44:44 -07:00
.cargo
.cloudflare
.config
.factory
.github Make guild member check case-insensitive in PR labeler (#54444) 2026-04-21 16:02:59 -04:00
.zed
assets Fix cmd-e on macOS to behave more like it should (#54451) 2026-04-21 19:54:02 +00:00
ci
crates dev_container: Resolve compose service build args in Dockerfile expansion (#54270) 2026-04-21 16:44:44 -07:00
docs agent_ui: Remove history view (#54402) 2026-04-21 14:33:38 +02:00
extensions
legal
nix
script Add more harness to the CI scripts (#53816) 2026-04-13 22:28:20 +03:00
tooling compliance: Allow Zippy version bumps (#54342) 2026-04-22 01:17:21 +02:00
.git-blame-ignore-revs
.gitattributes
.gitignore agent_ui: Unify draft and background threads into retained threads (#53737) 2026-04-13 09:07:09 +00:00
.mailmap
.prettierrc
.rules
AGENTS.md
Cargo.lock Bump jupyter-websocket-client to 1.1.0 (#54442) 2026-04-21 23:39:53 +00:00
Cargo.toml Bump jupyter-websocket-client to 1.1.0 (#54442) 2026-04-21 23:39:53 +00:00
CLAUDE.md
clippy.toml
CODE_OF_CONDUCT.md
codebook.toml editor: Introduce Bookmarks (#54174) 2026-04-17 13:54:43 +02:00
compose.yml
CONTRIBUTING.md
debug.plist
default.nix
Dockerfile-collab
Dockerfile-collab.dockerignore
Dockerfile-cross.dockerignore
Dockerfile-distros Removal of mold/wild scripts and mentions in docs (#53078) 2026-04-08 21:20:02 +03:00
Dockerfile-distros.dockerignore
flake.lock
flake.nix
GEMINI.md
LICENSE-AGPL
LICENSE-APACHE
LICENSE-GPL
livekit.yaml
lychee.toml
Procfile
Procfile.all
Procfile.web
README.md
renovate.json
REVIEWERS.conl
rust-toolchain.toml
rustfmt.toml
shell.nix
typos.toml fuzzy_nucleo: Add strings module and route several pickers through it (#54123) 2026-04-20 14:41:29 +02:00

Zed

Zed CI

Welcome to Zed, a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.


Installation

On macOS, Linux, and Windows you can download Zed directly or install Zed via your local package manager (macOS/Linux/Windows).

Other platforms are not yet available:

Developing Zed

Contributing

See CONTRIBUTING.md for ways you can contribute to Zed.

Also... we're hiring! Check out our jobs page for open roles.

Licensing

License information for third party dependencies must be correctly provided for CI to pass.

We use cargo-about to automatically comply with open source licenses. If CI is failing, check the following:

  • Is it showing a no license specified error for a crate you've created? If so, add publish = false under [package] in your crate's Cargo.toml.
  • Is the error failed to satisfy license requirements for a dependency? If so, first determine what license the project has and whether this system is sufficient to comply with this license's requirements. If you're unsure, ask a lawyer. Once you've verified that this system is acceptable add the license's SPDX identifier to the accepted array in script/licenses/zed-licenses.toml.
  • Is cargo-about unable to find the license for a dependency? If so, add a clarification field at the end of script/licenses/zed-licenses.toml, as specified in the cargo-about book.

Sponsorship

Zed is developed by Zed Industries, Inc., a for-profit company.

If youd like to financially support the project, you can do so via GitHub Sponsors. Sponsorships go directly to Zed Industries and are used as general company revenue. There are no perks or entitlements associated with sponsorship.