Skip to content

Commit 58d4808

Browse files
committed
#4244 - remove explicit version on cli install
1 parent 4a7d978 commit 58d4808

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

SECURITY.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## Supported Versions
44

5-
| Version | Supported |
6-
| --------: | :----------------: |
7-
| 5.x | :white\_check\_mark: |
8-
| ⋜ 5.x | :x: |
5+
| Version | Supported |
6+
|--------:|:--------------------:|
7+
| 6.x | :white\_check\_mark: |
8+
| < 6.x | :x: |
99

1010
## Reporting Security Issues
1111

docs/input/docs/reference/build-servers/bitbucket-pipelines.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pipelines:
2727
name: Version and build
2828
script:
2929
- export PATH="$PATH:/root/.dotnet/tools"
30-
- dotnet tool install --global GitVersion.Tool --version 5.*
30+
- dotnet tool install --global GitVersion.Tool
3131
- dotnet-gitversion /output buildserver
3232
- source gitversion.properties
3333
- echo Building with semver $GITVERSION_FULLSEMVER
@@ -61,7 +61,7 @@ pipelines:
6161
name: Version
6262
script:
6363
- export PATH="$PATH:/root/.dotnet/tools"
64-
- dotnet tool install --global GitVersion.Tool --version 5.*
64+
- dotnet tool install --global GitVersion.Tool
6565
- dotnet-gitversion /output buildserver
6666
artifacts:
6767
- gitversion.properties

docs/input/docs/usage/cli/installation.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@ GitVersion can be installed as a [.NET global tool][dotnet-tool] under the name
1313
[`GitVersion.Tool`][tool] by executing the following in a terminal:
1414

1515
```shell
16-
dotnet tool install --global GitVersion.Tool --version 5.*
16+
dotnet tool install --global GitVersion.Tool
1717
```
1818

19+
:::{.alert .alert-info}
20+
**Hint:** To install an older version of GitVersion.Tools, use the --version flag of dotnet tool install
21+
22+
Example: `dotnet tool install GitVersion.Tool --global --version 5.*`
23+
:::
24+
1925
If you want to pin to a specific version of GitVersion, you can find the available
2026
versions of [`GitVersion.Tool` on NuGet](https://www.nuget.org/packages/GitVersion.Tool/).
2127

@@ -62,15 +68,15 @@ without installing any other dependencies. To use the Docker image, execute
6268
the following:
6369

6470
```shell
65-
docker run --rm -v "$(pwd):/repo" gittools/gitversion:5.6.6 /repo
71+
docker run --rm -v "$(pwd):/repo" gittools/gitversion:latest-debian.12 /repo
6672
```
6773

6874
The important arguments here are:
6975

7076
| Argument | Description |
71-
| --------------------------: | :----------------------------------------------------------------------------------------------------------- |
77+
|----------------------------:|:-------------------------------------------------------------------------------------------------------------|
7278
| `"$(pwd):/repo"` | Maps the output of `pwd` (the working directory) to the `/repo` directory within the Docker container. |
73-
| `gittools/gitversion:5.6.6` | The name and tag of the GitVersion container to use. |
79+
| `gittools/gitversion:{tag}` | The name and tag of the GitVersion container to use. |
7480
| `/repo` | The directory within the Docker container GitVersion should use as its working directory. Don't change this. |
7581

7682
:::{.alert .alert-warning}

0 commit comments

Comments
 (0)