GitVersion unable to work with remote reference and needs local copy of branches
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
Línea de trabajo
Comienza con los pasos de reproducción usando un repositorio en el que develop se haya eliminado localmente mientras todavía existe en el remoto, e inspecciona los puntos de entrada que determinan la información de rama y versión de GitVersion. Se considera terminado cuando un feature branch puede resolver el historial de develop y producir la versión esperada 1.2.0-version-test.1+## sin descargar localmente todas las ramas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Currently the GitVersion to support gitflow requires all the branches to be local in-order to get the correct version. This is not an issue when working on individual dev machines, but when you start using them with centralized build tool like Jenkins etc., downloading all the branches into the container becomes a challenge. As it takes lots of disk space and time (depends on how clean the graph is, i.e. people remove unwanted feature branches with discipline). My company build pipeline do not download all the branches and thus versioning breaks.
Expected Behavior
Let refer to a simple example, where master is tagged at 1.1.0
- a commit on develop branch and build creates a version 1.2.0-alpha.#
- a feature branch "version_test" created from develop, with commit and build should give version 1.2.0-version-test.1+##
Actual Behavior
A feature branch "version_test" created from develop, with commit and build gives version 1.1.0-version-test.1+##
The reason is the develop branch is not downloaded in to the build pipeline container, as it only gets master and "version_test" branch.
Possible Fix
If GitVersion is able to get the information from the remote repository instead dependent on branches available it would resolve the issue.
Steps to Reproduce
- create a simple repo with spring boot samples
- tag the master with 1.1.0
- create develop and make a commit , creating the version "Major": 1, "Minor": 2, "Patch": 0,
- create a feature branch "feature/version_test" and make a commit.
- gitversion will show a version "Major": 1, "Minor": 2, "Patch": 0,
- delete the develop branch from local
- gitversion will show a version "Major": 1, "Minor": 1, "Patch": 0,
Context
Since due to limited space for the build container, the build pipeline cannot download all the branches. This is limiting us to make the use of this wonderful tool. Only teams in our company that uses Mainline branch strategy are able to use this tool while projects that uses gitflow have to continue manually control their versions.
Your Environment
All environments
- Version Used: 5.8.1
- Operating System and version (Windows 10, Ubuntu 18.04): all
- Link to your project: cannot due to confidentiality
- Link to your CI build (if appropriate): NA
- Lenguaje dominante
- C#
- Estrellas
- 3.1k
- Forks
- 661
- Merge medio
- 7 h 4 min
- PR fusionados (30 d)
- 77
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de GitTools/GitVersion
-
[ISSUE]: Mainline: version on main falls back to 0.0.x when a branch named in a merge message still existsPosiblemente ocupada @arturcic la tomó hace 39 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
GitTools/GitVersion#5405 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
feature
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
GitTools/GitVersion#5398 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
GitTools/GitVersion#5267 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
GitTools/GitVersion#5188 ·
Los mantenedores suelen responder en 1 día
-
breaking change pinned
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
GitTools/GitVersion#5137 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de GitTools/GitVersion
Issues similares
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
area/backend type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
umbraco/Umbraco-CMS#24668 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Pri3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
MicrosoftDocs/windows-dev-docs#6205 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día