fix: look for bakery.toml in version_dir, not top-level package dir
This commit is contained in:
parent
8991f45bd6
commit
baf145db8a
1 changed files with 5 additions and 4 deletions
|
|
@ -77,14 +77,15 @@ build_package_json() {
|
||||||
binaries_json="$(jq -n --argjson arr "${binaries_json}" --argjson e "${entry}" '$arr + [$e]')"
|
binaries_json="$(jq -n --argjson arr "${binaries_json}" --argjson e "${entry}" '$arr + [$e]')"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Locate bakery.toml: the release workflow copies it to DL_DIR alongside the
|
# Locate bakery.toml. The release workflow copies it into the version dir
|
||||||
# binaries. Fall back to a sibling repo checkout for local dev use.
|
# alongside the binaries (${version_dir}/bakery.toml). Fall back to a
|
||||||
local bakery_toml="${DL_DIR}/${name}/bakery.toml"
|
# sibling repo checkout for local dev use.
|
||||||
|
local bakery_toml="${version_dir}/bakery.toml"
|
||||||
if [[ ! -f "${bakery_toml}" ]]; then
|
if [[ ! -f "${bakery_toml}" ]]; then
|
||||||
bakery_toml="${SCRIPT_DIR}/../${name}/bakery.toml"
|
bakery_toml="${SCRIPT_DIR}/../${name}/bakery.toml"
|
||||||
fi
|
fi
|
||||||
if [[ ! -f "${bakery_toml}" ]]; then
|
if [[ ! -f "${bakery_toml}" ]]; then
|
||||||
echo "ERROR: bakery.toml not found for ${name} — release.yml must upload it to ${DL_DIR}/${name}/bakery.toml" >&2
|
echo "ERROR: bakery.toml not found for ${name} — release.yml must copy it to \${DL_DIR}/${name}/\${VERSION}/bakery.toml" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue