coder / coder/envbuilder

Git SSH Urls cannot select a branch

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

Description

When using envbuilder with a git ssh url we cannot target a specific branch. Tracing this through it's because of the giturls library succeeds in parsing a transport/http regex and gleans the url fragment and this is mapped to a branch in coder. However for ssh no fragment is parsed in the scpProvider regex. Presumably it would be good to have a way similar to https to signal to coder a branch we want to check out. If this can't be done via the Git url then perhaps another env var / parameter needs to be available to achieve this

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the giturls parsing path, especially the scpProvider regex, and compare it with transport/http parsing and how coder maps URL fragments to branches. Confirm how an SSH URL or another parameter can express the requested branch, then verify that an SSH-based envbuilder build checks out it.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.