Skip to content

Restrict docker to build step#777

Open
ada-x64 wants to merge 1 commit into
nanvix/v3.12.3from
fix/666/docker-in-build
Open

Restrict docker to build step#777
ada-x64 wants to merge 1 commit into
nanvix/v3.12.3from
fix/666/docker-in-build

Conversation

@ada-x64

@ada-x64 ada-x64 commented Jul 6, 2026

Copy link
Copy Markdown

Fixes #666. Only ./z build (and ./z build --with-docker) may spawn
docker. Currently, setup/test/release/lint/benchmark do so by construction.

  • build.install(): drop dead Windows/docker branch. Windows installs ride inside docker_build's install_destdir path.
  • _docker: remove now-unused docker_install and clean_volume.
  • z._make_args: opt-in with_docker flag; only build() sets it.
  • Makefile.nanvix: install target native-only.

 Fixes #666. Only ./z build (and ./z build --with-docker) may spawn
 docker; setup/test/release/lint/benchmark now do so by construction.

 - build.install(): drop dead Windows/docker branch. Windows installs
   ride inside docker_build's install_destdir path.
 - _docker: remove now-unused docker_install and clean_volume.
 - z._make_args: opt-in with_docker flag; only build() sets it.
 - Makefile.nanvix: install target native-only.
Copilot AI review requested due to automatic review settings July 6, 2026 16:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR tightens the Nanvix CPython build orchestration so that Docker execution is gated to the ./z build flow, aligning with issue #666’s requirement that non-build steps run natively on the host.

Changes:

  • Make Makefile.nanvix’s install target native-only (no $(DOCKER_RUN) path).
  • Add an explicit with_docker opt-in to .nanvix/z.py::_make_args() and enable it only from build().
  • Remove now-unused Docker helpers (docker_install, clean_volume) and simplify the staging install helper to drop the Windows/Docker branch.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
Makefile.nanvix Removes Docker wrapping from the install target to prevent non-build Docker invocation.
.nanvix/z.py Adds a with_docker gate so only build() can request Docker-enabled make args.
.nanvix/build.py Removes the Windows/Docker-specific install path and clarifies install staging behavior.
.nanvix/_docker.py Deletes unused Docker entry points now that non-build flows should not invoke Docker.

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

@ada-x64 ada-x64 marked this pull request as ready for review July 6, 2026 17:00
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.

Restrict Docker usage to the build step

3 participants