coder / coder/envbuilder

feat: use specific branch with SSH url

オープン
#456 コメント 0 件 リアクション 4 件 担当者 0 名 GitHub で見る
主要言語
Go
スター
300
フォーク
64
平均マージ
20分
マージ済み PR(30日)
1

説明

It seems that there was an oversight when implementing the branch name parsing in `ENVBUILDER_GIT_URL` resulting in an inability to use a specific branch when cloning using an SSH URL.

Could we look into implementing this?

---

> When I work with a public repository and use HTTPS, everything works fine. I can clone the main branch and even specify another branch, as described in the documentation, like this:
> ENVBUILDER_GIT_URL=https://github.com/coder/envbuilder-starter-devcontainer/#refs/heads/my-feature-branch
> However, when I switch to a private repository that requires SSH authentication, I can successfully clone the main branch, but I'm unable to specify a different branch (e.g., sample-branch). Here's the Git URL format I'm using for the private repo:
>
> ENVBUILDER_GIT_URL=git@gitlab.com:your-group/your-repo.git/#refs/heads/sample-branch

(https://discord.com/channels/747933592273027093/1354136229498585158/1354136229498585158)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by locating the code that parses ENVBUILDER_GIT_URL and compare its handling of the HTTPS and SSH URL examples in the issue. Verify that cloning the SSH URL with /#refs/heads/sample-branch selects that branch, while cloning without a branch still works; no file or test path is named in the payload.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
git, go
領域
devops, tooling
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。