From 89b852393d1baedd0f08455b5b2fde7c0b3bfbd4 Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Fri, 27 Mar 2026 13:25:04 +0100 Subject: [PATCH] fix: use --no-root flag to skip project packaging installation BREAKTHROUGH: Poetry working but project packaging configuration incomplete Issue: 'No file/folder found for package aitbc-cli' Root cause: Project has packaging configuration but missing package structure Solution: Use --no-root flag to install dependencies only Changes: - Add --no-root flag to poetry install commands - Skip current project installation, only install dependencies - Maintain all other functionality (security scanning, etc.) - This avoids packaging configuration issues while enabling dependency management Updated workflows: - audit.yml: poetry install --no-root + audit - fix.yml: poetry install --no-root + safety fixes - security-scanning.yml: poetry install --no-root + security scans Expected results: - Dependencies installed successfully without packaging errors - Security tools working in project venv - All workflows completing successfully - Complete CI/CD pipeline functional This resolves the packaging configuration issue while maintaining full dependency management and security scanning capabilities. --- .gitea/workflows/audit.yml | 6 +++--- .gitea/workflows/fix.yml | 6 +++--- .gitea/workflows/security-scanning.yml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/audit.yml b/.gitea/workflows/audit.yml index 2b0e1269..825a9384 100644 --- a/.gitea/workflows/audit.yml +++ b/.gitea/workflows/audit.yml @@ -85,9 +85,9 @@ jobs: echo "Pip in venv: $(pip --version)" echo "=== PYTHON DEPENDENCIES ===" - # Use poetry to install project dependencies - echo "Installing project dependencies with poetry..." - $POETRY_CMD install + # Use poetry to install dependencies only (skip current project) + echo "Installing dependencies with poetry (no-root mode)..." + $POETRY_CMD install --no-root echo "✅ Python dependencies installed!" else diff --git a/.gitea/workflows/fix.yml b/.gitea/workflows/fix.yml index baf7bd9f..1c2256a6 100644 --- a/.gitea/workflows/fix.yml +++ b/.gitea/workflows/fix.yml @@ -83,9 +83,9 @@ jobs: echo "Pip in venv: $(pip --version)" echo "=== PYTHON DEPENDENCIES ===" - # Use poetry to install project dependencies - echo "Installing project dependencies with poetry..." - $POETRY_CMD install + # Use poetry to install dependencies only (skip current project) + echo "Installing dependencies with poetry (no-root mode)..." + $POETRY_CMD install --no-root echo "✅ Python dependencies installed!" echo "=== SECURITY FIXES ===" diff --git a/.gitea/workflows/security-scanning.yml b/.gitea/workflows/security-scanning.yml index f167c3ad..cb207c9c 100644 --- a/.gitea/workflows/security-scanning.yml +++ b/.gitea/workflows/security-scanning.yml @@ -83,9 +83,9 @@ jobs: echo "Pip in venv: $(pip --version)" echo "=== PYTHON DEPENDENCIES ===" - # Use poetry to install project dependencies - echo "Installing project dependencies with poetry..." - $POETRY_CMD install + # Use poetry to install dependencies only (skip current project) + echo "Installing dependencies with poetry (no-root mode)..." + $POETRY_CMD install --no-root echo "✅ Running security scan..." venv/bin/pip install safety bandit