From d3354bf1558e487840125b44d3ae19a20bf40dc7 Mon Sep 17 00:00:00 2001 From: max-dfinity <100170574+max-dfinity@users.noreply.github.com> Date: Fri, 10 Jan 2025 14:30:58 -0800 Subject: [PATCH] fix(proposal-tools): Fix code path to be absolute instead of relative (#3406) This fixes a problem where unreleased_changelog.md is not found if running from a different directory. --- testnet/tools/nns-tools/lib/proposals.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testnet/tools/nns-tools/lib/proposals.sh b/testnet/tools/nns-tools/lib/proposals.sh index c89a9930d87..addc68e0026 100644 --- a/testnet/tools/nns-tools/lib/proposals.sh +++ b/testnet/tools/nns-tools/lib/proposals.sh @@ -133,8 +133,8 @@ generate_nns_upgrade_proposal_text() { # our canisters will have such a file, but for now, we are still test # driving this process. FEATURES_AND_FIXES="TODO Hand-craft this section." - PRIMARY_RELATIVE_CODE_LOCATION=$(echo "${RELATIVE_CODE_LOCATION}" | cut -d' ' -f1) - UNRELEASED_CHANGELOG_PATH="${PRIMARY_RELATIVE_CODE_LOCATION}/unreleased_changelog.md" + PRIMARY_CANISTER_CODE_LOCATION=$(echo "${CANISTER_CODE_LOCATION}" | cut -d' ' -f1) + UNRELEASED_CHANGELOG_PATH="${PRIMARY_CANISTER_CODE_LOCATION}/unreleased_changelog.md" if [[ -e "${UNRELEASED_CHANGELOG_PATH}" ]]; then FEATURES_AND_FIXES=$( sed -n '/# Next Upgrade Proposal/,$p' \