mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
docker: Only match tags that start with v* (#120670)
To avoid issues where version could be confused with a ciflow tag. Example: ``` ❯ git describe --tags --always ciflow/periodic/c3496d50f0bb437c70f27085f71155209277bfd4-47-g4ca24959d1a ❯ git describe --tags --always --match "v[1-9]*.*" v1.8.0-rc1-36500-g4ca24959d1a ``` Resolves https://github.com/pytorch/pytorch/issues/120392 Signed-off-by: Eli Uriegas <eliuriegas@meta.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/120670 Approved by: https://github.com/kit1980, https://github.com/atalman
This commit is contained in:
parent
cf6df886a0
commit
27990045ff
1 changed files with 2 additions and 1 deletions
|
|
@ -21,7 +21,8 @@ CUDA_CHANNEL = nvidia
|
|||
INSTALL_CHANNEL ?= pytorch
|
||||
|
||||
PYTHON_VERSION ?= 3.10
|
||||
PYTORCH_VERSION ?= $(shell git describe --tags --always)
|
||||
# Match versions that start with v followed by a number, to avoid matching with tags like ciflow
|
||||
PYTORCH_VERSION ?= $(shell git describe --tags --always --match "v[1-9]*.*")
|
||||
# Can be either official / dev
|
||||
BUILD_TYPE ?= dev
|
||||
BUILD_PROGRESS ?= auto
|
||||
|
|
|
|||
Loading…
Reference in a new issue