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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.