coder / coder/envbuilder

Force cloning or pull of repo on each run of envbuilder

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

Description

When using envbuilder and restarting my workspace I nearly always want a fresh copy of the repo, but when using a pvc similar to this [example template](https://github.com/coder/coder/blob/main/examples/templates/devcontainer-kubernetes/main.tf) I envbuilder simply finds the existing repo, prints:

```
#1: 📦 Cloning MY_REPO...
#1: 📦 The repository already exists! [5.29944ms]
```

I see no way to force envbuilder to either clone it each time or, preferably, run a git pull to ensure the repo is fresh between rebuilds, but this would make the process more intuitive for our users.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the envbuilder repository setup path that emits the “repository already exists” message, using the linked Kubernetes template as context. Determine how a repeat run should refresh an existing repository, then verify that restarting a workspace produces the expected fresh repository state; the issue names no files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, go
Domain
developer-experience, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.