coder / coder/envbuilder

Git SSH Urls cannot select a branch

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

説明

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

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

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

調査の方向性

giturls のパース経路、特に scpProvider regex から始め、transport/http のパース、および coder が URL フラグメントをブランチにマッピングする方法と比較してください。SSH URL または別のパラメーターで要求されたブランチを指定できる方法を確認し、その後、SSH ベースの envbuilder ビルドがそのブランチをチェックアウトすることを検証してください。

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

評価

技術スタック
git, go
領域
build-system, devops
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

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

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