-
Notifications
You must be signed in to change notification settings - Fork 3
Automate bazelisk installation in proot-distro Debian for Termux #16
Copy link
Copy link
Open
Description
Background
This project uses Ansible to automate development environment setup across multiple platforms (Linux, macOS, Termux). The Ansible setup is located in devtools/setup-dev/ansible/ and includes:
- Package installation with platform-specific handling
- Development tool configuration (git, emacs, shell, etc.)
- Cross-platform compatibility with include guards
- Generated playbooks from Go templates for common packages
Current State
Bazel support was recently added for Termux via a wrapper script that runs bazel inside proot-distro Debian:
- Wrapper script:
~/.local/bin/bazel(added in commit 9b1dae6) - Current Debian setup: Bazelisk v1.8.1 manually installed at
/usr/local/bin/bazel - Wrapper functionality: Handles path mapping, user detection, and
.bazeliskrcsupport
Problem
The current bazelisk installation in Debian is manual and not managed by Ansible. This needs to be automated for consistent environment setup.
Tasks
- Add Ansible playbook to install proot-distro on Termux
- Create Debian environment if it doesn't exist
- Install bazelisk inside Debian environment using the same method as non-Darwin, non-Termux platforms
- Ensure proper user setup in Debian environment
Technical Details
The bazelisk installation should mirror the logic in bazel.yml:38-76:
- Download latest bazelisk release from GitHub API
- Install architecture-appropriate binary (
bazelisk-linux-amd64orbazelisk-linux-arm64) - Place at
/usr/local/bin/bazelwith executable permissions - Handle version checking and updates
Integration
This should integrate with the existing Ansible structure:
- Conditional execution only on Termux (
when: ansible_env.TERMUX_VERSION is defined) - Follow the project's include guard pattern
- Respect the existing playbook dependency system
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels