Git SSH Urls cannot select a branch
- Langage dominant
- Go
- Étoiles
- 300
- Forks
- 64
- Merge moyen
- 20 min
- PR mergées (30 j)
- 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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par le chemin de parsing de giturls, en particulier la regex de scpProvider, et comparez-le avec le parsing de transport/http ainsi qu’avec la façon dont coder associe les fragments d’URL aux branches. Confirmez comment une URL SSH ou un autre paramètre peut exprimer la branche demandée, puis vérifiez qu’un build envbuilder basé sur SSH effectue son checkout.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- git, go
- Domaine
- build-system, devops
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100