Skip to content

refactor(runner): resolve container type before .bin validation#3430

Merged
mkoura merged 1 commit intomasterfrom
explicit_container_type
Apr 22, 2026
Merged

refactor(runner): resolve container type before .bin validation#3430
mkoura merged 1 commit intomasterfrom
explicit_container_type

Conversation

@mkoura
Copy link
Copy Markdown
Collaborator

@mkoura mkoura commented Apr 22, 2026

Resolve empty CONTAINER_TYPE to alpine/nixos so the validator sees the concrete type and the nixos symlink check fires under auto-detect.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors runner/runc.sh so the container type is auto-resolved (alpine vs nixos) before .bin compatibility validation runs, ensuring the validator sees the concrete container type and applies the correct symlink rules under auto-detect.

Changes:

  • Resolve empty CONTAINER_TYPE early based on host /nix presence.
  • Add explicit alpine handling in select_image() (base image, tag, and /nix mount) and remove the prior “empty means auto-detect” branch there.
  • Update the unknown container type error message to include alpine.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread runner/runc.sh Outdated
Resolve empty CONTAINER_TYPE to alpine/nixos so the validator sees the
concrete type and the nixos symlink check fires under auto-detect.
@mkoura mkoura force-pushed the explicit_container_type branch from 9e99f5e to 200c241 Compare April 22, 2026 11:18
@mkoura mkoura merged commit 627ac7b into master Apr 22, 2026
1 check passed
@mkoura mkoura deleted the explicit_container_type branch April 22, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants