Ver Fonte

hack/make: Strip "v" tag prefix name from VERSION

To make the version format in the `moby-bin` consistent with the
version we use in the release pipeline.

```diff
Server: Docker Engine - Community
 Engine:
-  Version:          v25.0.0
+  Version:          25.0.0
...
```

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Paweł Gronowski há 1 ano atrás
pai
commit
9a5393d500
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      hack/make.sh

+ 3 - 1
hack/make.sh

@@ -39,7 +39,9 @@ DEFAULT_BUNDLES=(
 )
 
 VERSION=${VERSION:-dev}
-if [[ $VERSION == refs/tags/* ]]; then
+if [[ $VERSION == refs/tags/v* ]]; then
+	VERSION=${VERSION#refs/tags/v}
+else if [[ $VERSION == refs/tags/* ]]; then
 	VERSION=${VERSION#refs/tags/}
 elif [[ $VERSION == refs/heads/* ]]; then
 	VERSION=$(sed <<< "${VERSION#refs/heads/}" -r 's#/+#-#g')