From 257d6c3f9211b1c110268936fc9232e3e4a06cb7 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Thu, 29 May 2025 12:00:06 +0400 Subject: [PATCH] chore: debug statements --- .github/workflows/lint-rs.yml | 41 +++++++++++++++++++++++++++++++++++ .github/workflows/release.yml | 38 ++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/.github/workflows/lint-rs.yml b/.github/workflows/lint-rs.yml index fdd39d3..b642ac6 100644 --- a/.github/workflows/lint-rs.yml +++ b/.github/workflows/lint-rs.yml @@ -58,17 +58,58 @@ jobs: - name: Install nodecar dependencies working-directory: ./nodecar run: | + echo "DEBUG: Installing nodecar dependencies..." + echo "DEBUG: Current directory: $(pwd)" + echo "DEBUG: Contents of nodecar directory:" + ls -la + echo "DEBUG: Checking if package.json exists:" + cat package.json | head -20 + echo "DEBUG: Checking pnpm version and cache:" + pnpm --version + echo "DEBUG: Running pnpm install..." pnpm install --frozen-lockfile + echo "DEBUG: After pnpm install - checking node_modules:" + ls -la node_modules/ | head -20 + echo "DEBUG: Checking if specific dependencies exist:" + ls -la node_modules/commander || echo "commander not found" + ls -la node_modules/get-port || echo "get-port not found" + ls -la node_modules/proxy-chain || echo "proxy-chain not found" + echo "DEBUG: Checking get-port package.json type:" + cat node_modules/get-port/package.json | grep -E '"type":|"main":|"module":|"exports":' || echo "No ESM info found" + echo "DEBUG: Checking what TypeScript can resolve:" + npx tsc --noEmit --listFiles | head -20 || echo "TypeScript check failed" - name: Build nodecar binary shell: bash working-directory: ./nodecar run: | + echo "DEBUG: Building nodecar binary..." + echo "DEBUG: Current directory: $(pwd)" + echo "DEBUG: Contents of nodecar directory:" + ls -la + echo "DEBUG: Checking if node_modules still exists:" + ls -la node_modules/ | head -10 || echo "node_modules not found!" + echo "DEBUG: Checking TypeScript config:" + cat tsconfig.json + echo "DEBUG: Checking src directory:" + ls -la src/ + echo "DEBUG: Testing individual imports:" + echo "import { program } from 'commander';" > test-import.ts + npx tsc --noEmit test-import.ts || echo "Commander import failed" + echo "import getPort from 'get-port';" > test-import.ts + npx tsc --noEmit test-import.ts || echo "get-port import failed" + echo "import * as ProxyChain from 'proxy-chain';" > test-import.ts + npx tsc --noEmit test-import.ts || echo "proxy-chain import failed" + rm test-import.ts + echo "DEBUG: Running build script based on OS..." if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then + echo "DEBUG: Running Linux x64 build..." pnpm run build:linux-x64 elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then + echo "DEBUG: Running macOS aarch64 build..." pnpm run build:aarch64 elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then + echo "DEBUG: Running Windows x64 build..." pnpm run build:win-x64 fi diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 68f1160..fd4c132 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,12 +89,50 @@ jobs: - name: Install nodecar dependencies working-directory: ./nodecar run: | + echo "DEBUG: Installing nodecar dependencies..." + echo "DEBUG: Current directory: $(pwd)" + echo "DEBUG: Contents of nodecar directory:" + ls -la + echo "DEBUG: Checking if package.json exists:" + cat package.json | head -20 + echo "DEBUG: Checking pnpm version and cache:" + pnpm --version + echo "DEBUG: Running pnpm install..." pnpm install --frozen-lockfile + echo "DEBUG: After pnpm install - checking node_modules:" + ls -la node_modules/ | head -20 + echo "DEBUG: Checking if specific dependencies exist:" + ls -la node_modules/commander || echo "commander not found" + ls -la node_modules/get-port || echo "get-port not found" + ls -la node_modules/proxy-chain || echo "proxy-chain not found" + echo "DEBUG: Checking get-port package.json type:" + cat node_modules/get-port/package.json | grep -E '"type":|"main":|"module":|"exports":' || echo "No ESM info found" + echo "DEBUG: Checking what TypeScript can resolve:" + npx tsc --noEmit --listFiles | head -20 || echo "TypeScript check failed" - name: Build nodecar sidecar shell: bash working-directory: ./nodecar run: | + echo "DEBUG: Building nodecar sidecar..." + echo "DEBUG: Current directory: $(pwd)" + echo "DEBUG: Contents of nodecar directory:" + ls -la + echo "DEBUG: Checking if node_modules still exists:" + ls -la node_modules/ | head -10 || echo "node_modules not found!" + echo "DEBUG: Checking TypeScript config:" + cat tsconfig.json + echo "DEBUG: Checking src directory:" + ls -la src/ + echo "DEBUG: Testing individual imports:" + echo "import { program } from 'commander';" > test-import.ts + npx tsc --noEmit test-import.ts || echo "Commander import failed" + echo "import getPort from 'get-port';" > test-import.ts + npx tsc --noEmit test-import.ts || echo "get-port import failed" + echo "import * as ProxyChain from 'proxy-chain';" > test-import.ts + npx tsc --noEmit test-import.ts || echo "proxy-chain import failed" + rm test-import.ts + echo "DEBUG: Running nodecar build script..." pnpm run ${{ matrix.nodecar_script }} - name: Copy nodecar binary to Tauri binaries