Skip to content

Commit 37b0695

Browse files
mairasclaude
andcommitted
refactor: remove docker-build function that produces host-arch binaries
The docker-build function built binaries for the host architecture (x86_64 on most dev machines), which are useless for HALPI2 since it only runs on ARM64. Remove this function to avoid confusion. The docker-cross-build and docker-build-deb functions remain, as they correctly cross-compile to aarch64-unknown-linux-musl. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 70effcd commit 37b0695

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

run

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -129,30 +129,6 @@ _detect_docker_platform() {
129129
esac
130130
}
131131

132-
function docker-build {
133-
#@ Build in Docker container (automatic Linux environment)
134-
#@ Usage: docker-build [--release]
135-
#@ Category: Docker Build
136-
local build_args="$@"
137-
138-
echo "🏗️ Building in Docker container..."
139-
140-
# Detect host architecture for platform selection
141-
IFS=':' read -r platform _ <<< "$(_detect_docker_platform)"
142-
143-
docker run --rm \
144-
--platform "$platform" \
145-
-v "$(pwd):/workspace" \
146-
-w /workspace \
147-
mcr.microsoft.com/devcontainers/rust:1-bookworm \
148-
bash -c "
149-
set -e
150-
echo '🔨 Running cargo build $build_args...'
151-
cargo build $build_args
152-
echo '✅ Build complete!'
153-
" && echo "✅ Build successful in Docker container"
154-
}
155-
156132
function docker-cross-build {
157133
#@ Cross-compile for ARM64 Linux using cross in Docker
158134
#@ Usage: docker-cross-build [--release]

0 commit comments

Comments
 (0)