coder / coder/envbuilder

feat: Add a way to select a specific branch before building the devcontainer

Open
#266 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
300
Forks
64
Avg merge
20m
Merged PRs (30d)
1

Description

### Description

Improve feature parity with `github codespaces`.

The goal is to add a new `coder_parameter` called `target branch` to workspace templates.
It will let the user select a branch from which to build a devcontainer.

Unlike the devcontainer cli, the `git clone` happen in the `enbuilder` container.
So I think it is the responsibility of `envbuilder` to checkout to the target branch **before building the container**.

---

PS: The [workaround in readme.md](https://github.com/coder/envbuilder?tab=readme-ov-file#git-branch-selection) does not work on all platforms.

Contributor guide

No contributing guide indexed for this repository

Research direction

Read the readme.md Git branch selection workaround first, then trace the coder_parameter handling and the envbuilder checkout flow. Done means a target branch can be selected in workspace templates and is checked out before the devcontainer is built, including platforms where the README workaround fails.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.