coder / coder/envbuilder

Git SSH Urls cannot select a branch

未关闭
#407 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
question
主要语言
Go
星标
300
派生
64
平均合并
20 分钟
30 天内合并 PR
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 摘要。