Skip to content

Commit 177fba8

Browse files
partoufclaude
andcommitted
Fix beebasm build to use tags instead of branches for versioned builds
The beebasm versions (v1.09, v1.10, v1.11) are tags, not branches, so get_remote_revision needs to use tags/ ref type for versioned builds while keeping heads/ for trunk builds. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8ab8cb2 commit 177fba8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

misc/build-beebasm.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@ VERSION=$1
77
if [[ "${VERSION}" = "trunk" ]]; then
88
VERSION=trunk-$(date +%Y%m%d)
99
BRANCH=master
10+
REF_TYPE=heads
1011
else
1112
BRANCH=v${VERSION}
13+
REF_TYPE=tags
1214
fi
1315

1416
URL=https://github.com/stardot/beebasm
1517

1618
FULLNAME=beebasm-${VERSION}.tar.xz
1719
OUTPUT=$2/${FULLNAME}
1820

19-
REVISION="beebasm-$(get_remote_revision "${URL}" "heads/${BRANCH}")"
21+
REVISION="beebasm-$(get_remote_revision "${URL}" "${REF_TYPE}/${BRANCH}")"
2022
LAST_REVISION="${3:-}"
2123

2224
initialise "${REVISION}" "${OUTPUT}" "${LAST_REVISION}"

0 commit comments

Comments
 (0)