mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 19:28:26 +08:00
conda: limit git hashes in build numbers to 8 chars exactly.
Before this commit, a nasty edge case was possible where repositories on different builders have had different sets of objects fetched into them, and so git-describe selected different lengths for abbreviating hashes. See also https://github.com/conda/conda-build/issues/1940.
This commit is contained in:
parent
1572d852aa
commit
419042b5d3
@ -8,7 +8,7 @@ source:
|
|||||||
build:
|
build:
|
||||||
noarch_python: true
|
noarch_python: true
|
||||||
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
||||||
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}
|
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:9] }}
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
run:
|
run:
|
||||||
|
@ -8,7 +8,7 @@ source:
|
|||||||
build:
|
build:
|
||||||
noarch_python: true
|
noarch_python: true
|
||||||
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
||||||
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}
|
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:9] }}
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
build:
|
build:
|
||||||
|
@ -8,7 +8,7 @@ source:
|
|||||||
build:
|
build:
|
||||||
noarch_python: true
|
noarch_python: true
|
||||||
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
||||||
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}
|
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:9] }}
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
build:
|
build:
|
||||||
|
@ -8,7 +8,7 @@ source:
|
|||||||
build:
|
build:
|
||||||
noarch_python: true
|
noarch_python: true
|
||||||
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
||||||
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}
|
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:9] }}
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
build:
|
build:
|
||||||
|
@ -8,7 +8,7 @@ source:
|
|||||||
build:
|
build:
|
||||||
noarch_python: true
|
noarch_python: true
|
||||||
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
number: {{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}
|
||||||
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:] }}
|
string: py_{{ environ.get("GIT_DESCRIBE_NUMBER", 0) }}+git{{ environ.get("GIT_DESCRIBE_HASH", "")[1:9] }}
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
build:
|
build:
|
||||||
|
Loading…
Reference in New Issue
Block a user