The docs for "Default environment variables set during the build process" say
|
`PKG_VERSION` |
|
|
|
: The version of the package currently under construction. |
but in a v1 translation I'm doing (including staging builds, if that's relevant), previously working code
for /f "tokens=1 delims=." %%a in ("%PKG_VERSION%") do (
set "MAJOR_VERSION=%%a"
)
now evaluates as
for /F "tokens=1 delims=." %a in ("") do (set "MAJOR_VERSION=%a" )
in rattler-build - note the empty ("").
Not sure how many other default env vars might be affected.
Same effect on unix;
MAJOR_VERSION=$(echo ${PKG_VERSION} | cut -f1 -d".")
now evaluates as
│ │ ++ echo
│ │ ++ cut -f1 -d.
│ │ + MAJOR_VERSION=
The docs for "Default environment variables set during the build process" say
rattler-build/docs/build_script.md
Lines 430 to 432 in f0ddcc9
but in a v1 translation I'm doing (including staging builds, if that's relevant), previously working code
now evaluates as
in rattler-build - note the empty
("").Not sure how many other default env vars might be affected.
Same effect on unix;
MAJOR_VERSION=$(echo ${PKG_VERSION} | cut -f1 -d".")now evaluates as