moonrepo / moon

A build system and monorepo management tool for the web ecosystem, written in Rust.
https://moonrepo.dev/moon
MIT License
2.82k stars 154 forks source link

[bug] Process /bin/zsh failed with a -1 exit code #1467

Closed lucasferreiralsf closed 2 months ago

lucasferreiralsf commented 4 months ago

Describe the bug

I'm just started to use moon on a existing project we have, and on the first attempt to run the command:

moon run geo-execution-order:build --log debug

I started to face this error:

[DEBUG 2024-05-14 18:07:15.069] moon_cli  Running moon v1.24.4 (with ~/.proto/tools/moon/1.24.4/moon)  args=["/Users/lucasferreira/.proto/tools/moon/1.24.4/moon", "run", "geo-execution-order:build", "--log", "debug"]
[DEBUG 18:07:15.071] moon_env:load_environments  Creating moon environment, detecting store  store="/Users/lucasferreira/.moon"
[DEBUG 18:07:15.071] proto_core::proto:load_environments  Creating proto environment, detecting store  store="/Users/lucasferreira/.proto"
[DEBUG 18:07:15.071] moon_workspace::workspace:load_workspace  Attempting to find workspace root  working_dir="/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order"
[DEBUG 18:07:15.071] moon_workspace::workspace:load_workspace  Found a potential workspace root  workspace_root="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:07:15.071] moon_workspace::workspace:load_workspace  Creating workspace  workspace_root="/Users/lucasferreira/projects/zagros/04-mono" working_dir="/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order"
[DEBUG 18:07:15.072] moon_workspace::workspace:load_workspace  Loading .moon/workspace.yml  workspace_root="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:07:15.075] proto_core::proto_config:load_workspace  Loading .prototools  file="/Users/lucasferreira/projects/zagros/04-mono/.prototools"
[DEBUG 18:07:15.078] proto_core::proto_config:load_workspace  Loading .prototools  file="/Users/lucasferreira/.prototools"
[DEBUG 18:07:15.079] proto_core::proto_config:load_workspace  Loading .prototools  file="/Users/lucasferreira/.proto/.prototools"
[DEBUG 18:07:15.079] proto_core::proto_config:load_workspace  Loading local config only 
[DEBUG 18:07:15.079] proto_core::proto_config:load_workspace  Merged 0 configs 
[DEBUG 18:07:15.079] moon_workspace::workspace:load_workspace  Attempting to load .moon/toolchain.yml  workspace_root="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:07:15.080] moon_workspace::workspace:load_workspace  Attempting to load .moon/tasks.yml  workspace_root="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:07:15.081] moon_workspace::workspace:load_workspace  Attempting to load .moon/tasks/**/*.yml  workspace_root="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:07:15.081] moon_workspace::workspace:load_workspace  Loaded 0 task configs to inherit  scopes=[]
[DEBUG 18:07:15.081] moon_cache::cache_engine:load_workspace  Creating cache engine  cache_dir="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache" states_dir="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states"
[DEBUG 18:07:15.081] moon_hash::hash_engine:load_workspace  Creating hash engine  hashes_dir="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/hashes" outputs_dir="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/outputs"
[DEBUG 18:07:15.081] moon_vcs::git:load_workspace  Using git as a version control system 
[DEBUG 18:07:15.081] moon_vcs::git:load_workspace  Attempting to find a .git directory or file  starting_dir="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:07:15.081] moon_vcs::git:load_workspace  Found a .git directory (repository root)  git="/Users/lucasferreira/projects/zagros/04-mono/.git"
[DEBUG 18:07:15.081] moon_vcs::git:load_workspace  Loading ignore rules from .gitignore  ignore_file="/Users/lucasferreira/projects/zagros/04-mono/.gitignore"
[DEBUG 18:07:15.082] moon_process::command_inspector:load_workspace  Running command git remote get-url origin  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:07:15.091] moon_process::command_inspector:load_workspace  Running command git remote get-url upstream  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:07:15.096] moon_plugin::plugin_registry:create_plugin_registries  Creating plugin registry  kind="extension"
[DEBUG 18:07:15.097] moon_plugin::plugin_registry:create_plugin_registries  Creating plugin registry  kind="platform"
[DEBUG 18:07:15.097] moon_cli::systems::startup:install_proto  Checking if proto is installed  proto="/Users/lucasferreira/.proto/tools/proto/0.34.4/proto"
[DEBUG 18:07:15.097] moon_cache_item::cache_item:check_for_new_version  Cache hit, reading item  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/moonVersion.json"
[DEBUG 18:07:15.098] moon_project_graph::project_graph_builder:run  Building project graph 
[DEBUG 18:07:15.098] moon_project_graph::project_graph_builder:run  Locating projects with globs  globs=["apps/*", "packages/*", "services/*"]
[DEBUG 18:07:15.481] moon_project_graph::project_graph_builder:run  Extending project graph from subscribers 
[DEBUG 18:07:15.481] log:run  Loading names (aliases) from project package.json's  log.target="moon:bun-platform" log.module_path="moon_bun_platform::bun_platform" log.file="crates/bun/platform/src/bun_platform.rs" log.line=142
[DEBUG 18:07:15.481] log:run  Loading names (aliases) from project package.json's  log.target="moon:node-platform" log.module_path="moon_node_platform::node_platform" log.file="crates/node/platform/src/node_platform.rs" log.line=146
[DEBUG 18:07:15.481] moon_project_graph::project_graph_builder:run  Attempting to load packages/data-access/moon.yml (optional)  id="data-access" file="/Users/lucasferreira/projects/zagros/04-mono/packages/data-access/moon.yml"
[DEBUG 18:07:15.482] moon_project_graph::project_graph_builder:run  Attempting to load packages/utils/moon.yml (optional)  id="utils" file="/Users/lucasferreira/projects/zagros/04-mono/packages/utils/moon.yml"
[DEBUG 18:07:15.482] moon_project_graph::project_graph_builder:run  Attempting to load services/geo-execution-order/moon.yml (optional)  id="geo-execution-order" file="/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order/moon.yml"
[DEBUG 18:07:15.483] moon_process::command_inspector:run  Running command git hash-object --stdin-paths - .moon/toolchain.yml .moon/workspace.yml services/geo-execution-order/moon.yml  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:07:15.491] moon_hash::hasher:run  Generated content hash  label="Project graph" hash="7dfac0536b885fcec28060692ef05a8974977798b03028df6398da626c46ce7d"
[DEBUG 18:07:15.491] moon_hash::hash_engine:run  Saving hash manifest  label="Project graph" manifest="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/hashes/7dfac0536b885fcec28060692ef05a8974977798b03028df6398da626c46ce7d.json"
[DEBUG 18:07:15.492] moon_project_graph::project_graph_builder:run  Generated hash for project graph  hash="7dfac0536b885fcec28060692ef05a8974977798b03028df6398da626c46ce7d"
[DEBUG 18:07:15.492] moon_cache_item::cache_item:run  Cache hit, reading item  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/projects.json"
[DEBUG 18:07:15.492] moon_project_graph::project_graph_builder:run  Loading project graph with 3 projects from cache  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/partialProjectGraph.json"
[DEBUG 18:07:15.493] moon_project_graph::project_graph_builder:run  Enforcing project constraints 
[DEBUG 18:07:15.493] moon_project_graph::project_graph:run  Creating project graph 
[DEBUG 18:07:15.493] moon_cli::queries::touched_files:run  Querying for touched files 
[DEBUG 18:07:15.493] moon_process::command_inspector:run  Running command git --version  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:07:15.499] moon_process::command_inspector:run  Running command git branch --show-current  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:07:15.504] moon_process::command_inspector:run  Running command git status --porcelain --untracked-files -z  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:07:15.513] moon_cli::queries::touched_files:run  Filtering based on touched status "all" 
[DEBUG 18:07:15.513] moon_cli::queries::touched_files:run  Found touched files  files=["packages/data-access/src/schema/zagros_si/plagueCropTissueSymptomReference.ts", "packages/data-access/src/schema/zagros_si/plagueScientificName.ts", "services/geo-execution-order/moon.yml", ".nvmrc", "packages/data-access/src/json-to-schema.ts", "services/geo-execution-order/src/app.service.ts", "packages/data-access/project.json", "services/geo-execution-order/src/app.module.ts", "packages/data-access/src/schema/zagros_si/plantTissue.ts", "packages/data-access/tsconfig.lib.json", "services/geo-execution-order/src/app.controller.spec.ts", "services/geo-execution-order/src/plant/plant.controller.ts", "packages/data-access/docker-compose.yaml", "packages/data-access/.eslintrc.json", "packages/data-access/src/migrations/meta/_journal.json", "services/geo-execution-order/src/phenology/phenology.service.spec.ts", "services/geo-execution-order/src/crop/crop.controller.ts", "services/geo-execution-order/src/crop/crop.service.ts", "services/geo-execution-order/src/phenology/phenology.service.ts", "packages/utils/src/lib/utils.spec.ts", "packages/utils/README.md", "packages/utils/jest.config.ts", "services/geo-execution-order/src/crop/crop.query.params.ts", "services/geo-execution-order/src/plant/plant.controller.spec.ts", "services/geo-execution-order/test/jest-e2e.json", ".gitignore", "services/geo-execution-order/src/plague/plague.controller.ts", "packages/data-access/src/schema/zagros_si/crop.ts", "packages/data-access/tsconfig.json", "services/geo-execution-order/package.json", "packages/data-access/README.md", "packages/utils/index.ts", "packages/utils/tsconfig.lib.json", "services/geo-execution-order/.gitignore", "services/geo-execution-order/src/phenology/phenology.controller.spec.ts", "services/geo-execution-order/src/plague/plague.module.ts", "services/geo-execution-order/.dockerignore", "packages/data-access/index.ts", "packages/utils/env/index.ts", "packages/data-access/src/migrations/meta/0000_snapshot.json", "services/geo-execution-order/docker-compose.local.yaml", "packages/data-access/src/schema/zagros_si/plague.ts", "packages/data-access/src/db.ts", ".moon/toolchain.yml", "packages/data-access/src/schema/index.ts", "services/geo-execution-order/docker-compose.prod.yaml", "packages/data-access/src/migrations/0000_right_boom_boom.sql", "packages/utils/tsconfig.json", "packages/data-access/src/schema/zagros_si/cropVariety.ts", "services/geo-execution-order/src/plant/plant.service.ts", "services/geo-execution-order/README.md", "services/geo-execution-order/pnpm-lock.yaml", "packages/utils/project.json", "packages/data-access/src/env.ts", "packages/data-access/drizzle.config.ts", "packages/utils/src/index.ts", "services/geo-execution-order/wwwroot/swagger/assets/Logo_Zagros.jpg", "packages/data-access/src/schema/zagros_si/symptomFormula.ts", "services/geo-execution-order/.eslintrc.js", "pnpm-lock_BKP.yaml", "services/geo-execution-order/src/crop/crop.controller.spec.ts", "packages/data-access/src/schema/zagros_si/plaguePattern.ts", "packages/data-access/src/schema/zagros_si/plagueType.ts", "packages/data-access/src/schema/zagros_si/cropScientificName.ts", "packages/data-access/src/schema/zagros_si/plagueSymptom.ts", "packages/utils/tsconfig.spec.json", "services/geo-execution-order/drizzle.config.ts", "services/geo-execution-order/src/phenology/phenology.controller.ts", "packages/data-access/jest.config.ts", "packages/data-access/src/schema/zagros_si/phenology.ts", "packages/data-access/src/schema/zagros_si/zagrosSiSchema.ts", "packages/utils/src/lib/utils.ts", ".moon/workspace.yml", "services/geo-execution-order/src/crop/crop.service.spec.ts", "services/geo-execution-order/src/phenology/phenology.module.ts", "services/geo-execution-order/src/app.controller.ts", "services/geo-execution-order/src/crop/crop.module.ts", "services/geo-execution-order/src/plague/plague.service.ts", "services/geo-execution-order/tsconfig.json", "packages/data-access/src/migrate.ts", "packages/data-access/.gitignore", "services/geo-execution-order/Dockerfile", "services/geo-execution-order/.env-example", "packages/utils/.eslintrc.json", "services/geo-execution-order/nest-cli.json", "services/geo-execution-order/src/main.ts", "services/geo-execution-order/.prettierrc", "services/geo-execution-order/src/plague/plague.service.spec.ts", "services/geo-execution-order/src/plant/plant.module.ts", "services/geo-execution-order/tsconfig.build.json", "services/geo-execution-order/src/crop/crop.custom.validator.ts", "services/geo-execution-order/src/plant/plant.service.spec.ts", ".DS_Store", "services/geo-execution-order/test/app.e2e-spec.ts", "packages/data-access/tsconfig.spec.json", ".prototools", "package_BKP.json", "packages/data-access/src/[schema-name.]?table-name.to-schema.json.example", "services/geo-execution-order/src/plague/plague.controller.spec.ts"]
[DEBUG 18:07:15.513] moon_action_graph::action_graph_builder:run  Building action graph 
[DEBUG 18:07:15.513] moon_project_expander::project_expander:run  Expanding project geo-execution-order  id="geo-execution-order"
[DEBUG 18:07:15.514] moon_project_expander::project_expander:run  Expanding task geo-execution-order:build  target="geo-execution-order:build"
[DEBUG 18:07:15.514] moon_project_expander::project_expander:run  Expanding task geo-execution-order:dev  target="geo-execution-order:dev"
[DEBUG 18:07:15.514] moon_project_expander::project_expander:run  Expanding task geo-execution-order:prod  target="geo-execution-order:prod"
[DEBUG 18:07:15.514] moon_action_graph::action_graph_builder:run  Project geo-execution-order is not within the dependency manager workspace, dependencies will be installed within the project instead of the root 
[DEBUG 18:07:15.514] moon_action_graph::action_graph_builder:run  Adding SyncWorkspace to graph  index=0
[DEBUG 18:07:15.514] moon_action_graph::action_graph_builder:run  Adding SetupNodeTool(20.13.1) to graph  index=1
[DEBUG 18:07:15.514] moon_action_graph::action_graph_builder:run  Adding InstallNodeDepsInProject(20.13.1, geo-execution-order) to graph  index=2
[DEBUG 18:07:15.514] moon_action_graph::action_graph_builder:run  Adding SyncNodeProject(geo-execution-order) to graph  index=3
[DEBUG 18:07:15.514] moon_action_graph::action_graph_builder:run  Adding RunTask(geo-execution-order:build) to graph  index=4
[DEBUG 18:07:15.514] moon_action_graph::action_graph:run  Creating action graph 
[DEBUG 18:07:15.514] log:run  Running 5 actions  log.target="moon:action-pipeline" log.module_path="moon_action_pipeline::pipeline" log.file="crates/core/action-pipeline/src/pipeline.rs" log.line=88
[DEBUG 18:07:15.514] moon_action_graph::action_graph:run  Iterating action graph topologically  order=[0, 1, 2, 3, 4]
[DEBUG 18:07:15.514] log  Syncing workspace  log.target="moon:action:sync-workspace" log.module_path="moon_action_pipeline::actions::sync_workspace" log.file="crates/core/action-pipeline/src/actions/sync_workspace.rs" log.line=31
[DEBUG 18:07:15.514] log  Setting up Node 20.13.1 toolchain  log.target="moon:action:setup-tool" log.module_path="moon_action_pipeline::actions::setup_tool" log.file="crates/core/action-pipeline/src/actions/setup_tool.rs" log.line=36
[DEBUG 18:07:15.514] moon_cache_item::cache_item  Cache hit, reading item  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/toolNode-20.13.1.json"
[DEBUG 18:07:15.514] proto_core::proto_config  Merging loaded configs 
[DEBUG 18:07:15.515] proto_core::proto_config  Merged 3 configs 
[DEBUG 18:07:15.515] proto_core::tool  Creating tool node and instantiating plugin 
[DEBUG 18:07:15.532] proto_core::tool  Created tool node and its WASM runtime 
[DEBUG 18:07:15.533] proto_core::tool_manifest  Loading manifest.json  file="/Users/lucasferreira/.proto/tools/node/manifest.json"
[DEBUG 18:07:15.533] proto_core::tool  Creating tool pnpm and instantiating plugin 
[DEBUG 18:07:15.546] proto_core::tool  Created tool pnpm and its WASM runtime 
[DEBUG 18:07:15.547] proto_core::tool_manifest  Loading manifest.json  file="/Users/lucasferreira/.proto/tools/pnpm/manifest.json"
[DEBUG 18:07:15.547] proto_core::tool  Resolving a semantic version or alias  tool="node" initial_version="20.13.1"
[DEBUG 18:07:15.547] proto_core::tool  Resolved to 20.13.1 (without validation)  tool="node" version="20.13.1"
[DEBUG 18:07:15.547] proto_core::tool  Checking if tool is installed  tool="node" install_dir="/Users/lucasferreira/.proto/tools/node/20.13.1"
[DEBUG 18:07:15.547] proto_core::tool  Tool has already been installed, locating binaries and shims  tool="node" install_dir="/Users/lucasferreira/.proto/tools/node/20.13.1"
[DEBUG 18:07:15.547] proto_core::tool  Locating executable for tool  tool="node"
[DEBUG 18:07:15.548] proto_core::tool  Found an executable  tool="node" exe_path="/Users/lucasferreira/.proto/tools/node/20.13.1/bin/node"
[DEBUG 18:07:15.548] proto_core::tool  Creating shim  tool="node" shim="/Users/lucasferreira/.proto/shims/node" shim_version=13
[DEBUG 18:07:15.549] log  Node.js has already been setup  log.target="moon_node_tool::node_tool" log.module_path="moon_node_tool::node_tool" log.file="crates/node/tool/src/node_tool.rs" log.line=237
[DEBUG 18:07:15.549] proto_core::tool  Locating globals bin directory for tool  tool="node"
[DEBUG 18:07:15.549] proto_core::tool  Found a globals directory  tool="node" bin_dir="/Users/lucasferreira/.proto/tools/node/globals/bin"
[DEBUG 18:07:15.549] proto_core::tool  Resolving a semantic version or alias  tool="pnpm" initial_version="9.1.0"
[DEBUG 18:07:15.549] proto_core::tool  Resolved to 9.1.0 (without validation)  tool="pnpm" version="9.1.0"
[DEBUG 18:07:15.549] proto_core::tool  Checking if tool is installed  tool="pnpm" install_dir="/Users/lucasferreira/.proto/tools/pnpm/9.1.0"
[DEBUG 18:07:15.549] proto_core::tool  Tool has already been installed, locating binaries and shims  tool="pnpm" install_dir="/Users/lucasferreira/.proto/tools/pnpm/9.1.0"
[DEBUG 18:07:15.549] proto_core::tool  Locating executable for tool  tool="pnpm"
[DEBUG 18:07:15.549] proto_core::tool  Found an executable  tool="pnpm" exe_path="/Users/lucasferreira/.proto/tools/pnpm/9.1.0/bin/pnpm.cjs"
[DEBUG 18:07:15.549] proto_core::tool  Creating shim  tool="pnpm" shim="/Users/lucasferreira/.proto/shims/pnpm" shim_version=13
[DEBUG 18:07:15.550] proto_core::tool  Creating shim  tool="pnpm" shim="/Users/lucasferreira/.proto/shims/pnpx" shim_version=13
[DEBUG 18:07:15.550] proto_core::tool  Locating globals bin directory for tool  tool="pnpm"
[DEBUG 18:07:15.550] proto_core::tool  Found a globals directory  tool="pnpm" bin_dir="/Users/lucasferreira/Library/pnpm"
[DEBUG 18:07:15.550] log  pnpm has already been setup  log.target="moon_node_tool::pnpm_tool" log.module_path="moon_node_tool::pnpm_tool" log.file="crates/node/tool/src/pnpm_tool.rs" log.line=83
[DEBUG 18:07:15.550] log  Syncing Node.js version to ~/projects/zagros/04-mono/./.nvmrc  log.target="moon:node-platform:setup-tool" log.module_path="moon_node_platform::actions::setup_tool" log.file="crates/node/platform/src/actions/setup_tool.rs" log.line=97
[DEBUG 18:07:15.550] moon_cache_item::cache_item  Writing cache item  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/toolNode-20.13.1.json"
[DEBUG 18:07:15.550] log  Syncing project geo-execution-order  log.target="moon:action:sync-project" log.module_path="moon_action_pipeline::actions::sync_project" log.file="crates/core/action-pipeline/src/actions/sync_project.rs" log.line=32
[DEBUG 18:07:15.550] moon_cache::cache_engine  Writing cache  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/geo-execution-order/snapshot.json"
[DEBUG 18:07:15.574] moon_hash::hasher  Generated content hash  label="Install Node 20.13.1 deps" hash="0bfe617346f2f64cd9c153921194ff74aa9fdea10dcf118ba2c010d47fe96ba7"
[DEBUG 18:07:15.574] moon_hash::hash_engine  Saving hash manifest  label="Install Node 20.13.1 deps" manifest="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/hashes/0bfe617346f2f64cd9c153921194ff74aa9fdea10dcf118ba2c010d47fe96ba7.json"
[DEBUG 18:07:15.574] moon_cache_item::cache_item  Cache miss, item does not exist  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/geo-execution-order/depsNode.json"
[DEBUG 18:07:15.574] log  Installing Node 20.13.1 dependencies in ~/projects/zagros/04-mono/services/geo-execution-order  log.target="moon:action:install-deps" log.module_path="moon_action_pipeline::actions::install_deps" log.file="crates/core/action-pipeline/src/actions/install_deps.rs" log.line=168
[DEBUG 18:07:15.574] log  Installing dependencies  log.target="moon:node-platform:install-deps" log.module_path="moon_node_platform::actions::install_deps" log.file="crates/node/platform/src/actions/install_deps.rs" log.line=31
[DEBUG 18:07:15.574] moon_process::command_inspector  Running command /bin/zsh -c 'pnpm install'  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order")
▪▪▪▪ pnpm install
pnpm install (in ./services/geo-execution-order)
Error: process::failed

  × Process /bin/zsh failed with a -1 exit code.

I got the last command generated by moon /bin/zsh -c 'pnpm install' env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order") and tried to run by myself on the terminal, now I got the error zsh: number expected.

After some reasearch on the internet I found a stackoverflow regarding this error related to use brackets on the command, so I tried to run this same command without the function Some():

/bin/zsh -c 'pnpm install'  env_vars={} working_dir="/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order"

And the command was executed successfully and installed the dependencies inside the correct folder. So. I'm not sure if its a local problem or if there is a bug on this part?!

Environment

System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M2
    Memory: 80.88 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
    npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
    pnpm: 9.0.6 - ~/Library/pnpm/pnpm
    bun: 1.1.4 - /opt/homebrew/bin/bun
  Managers:
    Homebrew: 4.2.21 - /opt/homebrew/bin/brew
    pip2: 19.2.3 - ~/.pyenv/shims/pip2
    pip3: 24.0 - ~/.pyenv/shims/pip3
    RubyGems: 3.0.3.1 - /usr/bin/gem
  Utilities:
    CMake: 3.24.4 - /opt/local/bin/cmake
    Make: 3.81 - /usr/bin/make
    GCC: 15.0.0 - /usr/bin/gcc
    Git: 2.39.3 - /usr/bin/git
    Clang: 15.0.0 - /usr/bin/clang
    Curl: 8.6.0 - /opt/local/bin/curl
    OpenSSL: 3.2.1 - /opt/local/bin/openssl
  Servers:
    Apache: 2.4.58 - /usr/sbin/apachectl
  Virtualization:
    Docker: 24.0.7 - /Users/lucasferreira/.rd/bin/docker
    Docker Compose: 2.23.3 - /Users/lucasferreira/.rd/bin/docker-compose
    Parallels: 19.2.1 - /usr/local/bin/prlctl
  IDEs:
    Android Studio: 2022.3 AI-223.8836.35.2231.10811636
    VSCode: 1.89.0 - /usr/local/bin/code
    Vim: 9.0 - /usr/bin/vim
    Xcode: /undefined - /usr/bin/xcodebuild
  Languages:
    Bash: 3.2.57 - /bin/bash
    Perl: 5.34.1 - /usr/bin/perl
    Python: 3.8.18 - /Users/lucasferreira/.pyenv/shims/python
    Python3: 3.8.18 - /Users/lucasferreira/.pyenv/shims/python3
    Ruby: 2.6.10 - /usr/bin/ruby
  Databases:
    MySQL: 15.2 (MariaDB) - /opt/homebrew/bin/mysql
    SQLite: 3.43.2 - /usr/bin/sqlite3
  Browsers:
    Chrome: 124.0.6367.202
    Safari: 17.4.1
milesj commented 4 months ago

@lucasferreiralsf The Some() isn't part of the actual command, that's just the logging. The actual command is just pnpm install.

I did just push a fix though for toolchain stuff, can you try v1.24.5?

lucasferreiralsf commented 4 months ago

@milesj I updated the lib and tried again, and the same error occurred:

moon run geo-execution-order:build --log debug
[DEBUG 2024-05-14 18:24:43.643] moon_cli  Running moon v1.24.5 (with ~/.proto/tools/moon/1.24.5/moon)  args=["/Users/lucasferreira/.proto/tools/moon/1.24.5/moon", "run", "geo-execution-order:build", "--log", "debug"]
[DEBUG 18:24:43.644] moon_env:load_environments  Creating moon environment, detecting store  store="/Users/lucasferreira/.moon"
[DEBUG 18:24:43.644] proto_core::proto:load_environments  Creating proto environment, detecting store  store="/Users/lucasferreira/.proto"
[DEBUG 18:24:43.644] moon_workspace::workspace:load_workspace  Attempting to find workspace root  working_dir="/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order"
[DEBUG 18:24:43.645] moon_workspace::workspace:load_workspace  Found a potential workspace root  workspace_root="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:24:43.645] moon_workspace::workspace:load_workspace  Creating workspace  workspace_root="/Users/lucasferreira/projects/zagros/04-mono" working_dir="/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order"
[DEBUG 18:24:43.645] moon_workspace::workspace:load_workspace  Loading .moon/workspace.yml  workspace_root="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:24:43.646] proto_core::proto_config:load_workspace  Loading .prototools  file="/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order/.prototools"
[DEBUG 18:24:43.648] proto_core::proto_config:load_workspace  Loading .prototools  file="/Users/lucasferreira/projects/zagros/04-mono/.prototools"
[DEBUG 18:24:43.648] proto_core::proto_config:load_workspace  Loading .prototools  file="/Users/lucasferreira/.prototools"
[DEBUG 18:24:43.648] proto_core::proto_config:load_workspace  Loading .prototools  file="/Users/lucasferreira/.proto/.prototools"
[DEBUG 18:24:43.649] proto_core::proto_config:load_workspace  Loading local config only 
[DEBUG 18:24:43.649] proto_core::proto_config:load_workspace  Merged 1 configs 
[DEBUG 18:24:43.649] moon_workspace::workspace:load_workspace  Attempting to load .moon/toolchain.yml  workspace_root="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:24:43.650] moon_workspace::workspace:load_workspace  Attempting to load .moon/tasks.yml  workspace_root="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:24:43.650] moon_workspace::workspace:load_workspace  Attempting to load .moon/tasks/**/*.yml  workspace_root="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:24:43.650] moon_workspace::workspace:load_workspace  Loaded 0 task configs to inherit  scopes=[]
[DEBUG 18:24:43.650] moon_cache::cache_engine:load_workspace  Creating cache engine  cache_dir="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache" states_dir="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states"
[DEBUG 18:24:43.650] moon_hash::hash_engine:load_workspace  Creating hash engine  hashes_dir="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/hashes" outputs_dir="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/outputs"
[DEBUG 18:24:43.650] moon_vcs::git:load_workspace  Using git as a version control system 
[DEBUG 18:24:43.650] moon_vcs::git:load_workspace  Attempting to find a .git directory or file  starting_dir="/Users/lucasferreira/projects/zagros/04-mono"
[DEBUG 18:24:43.650] moon_vcs::git:load_workspace  Found a .git directory (repository root)  git="/Users/lucasferreira/projects/zagros/04-mono/.git"
[DEBUG 18:24:43.650] moon_vcs::git:load_workspace  Loading ignore rules from .gitignore  ignore_file="/Users/lucasferreira/projects/zagros/04-mono/.gitignore"
[DEBUG 18:24:43.650] moon_process::command_inspector:load_workspace  Running command git remote get-url origin  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:24:43.657] moon_process::command_inspector:load_workspace  Running command git remote get-url upstream  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:24:43.662] moon_plugin::plugin_registry:create_plugin_registries  Creating plugin registry  kind="extension"
[DEBUG 18:24:43.663] moon_plugin::plugin_registry:create_plugin_registries  Creating plugin registry  kind="platform"
[DEBUG 18:24:43.663] moon_cli::systems::startup:install_proto  Checking if proto is installed  proto="/Users/lucasferreira/.proto/tools/proto/0.34.4/proto"
[DEBUG 18:24:43.663] moon_cache_item::cache_item:check_for_new_version  Cache hit, reading item  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/moonVersion.json"
[DEBUG 18:24:43.663] moon_project_graph::project_graph_builder:run  Building project graph 
[DEBUG 18:24:43.663] moon_project_graph::project_graph_builder:run  Locating projects with globs  globs=["apps/*", "packages/*", "services/*"]
[DEBUG 18:24:43.909] moon_project_graph::project_graph_builder:run  Extending project graph from subscribers 
[DEBUG 18:24:43.909] log:run  Loading names (aliases) from project package.json's  log.target="moon:bun-platform" log.module_path="moon_bun_platform::bun_platform" log.file="crates/bun/platform/src/bun_platform.rs" log.line=142
[DEBUG 18:24:43.909] log:run  Loading names (aliases) from project package.json's  log.target="moon:node-platform" log.module_path="moon_node_platform::node_platform" log.file="crates/node/platform/src/node_platform.rs" log.line=146
[DEBUG 18:24:43.909] moon_project_graph::project_graph_builder:run  Attempting to load packages/data-access/moon.yml (optional)  id="data-access" file="/Users/lucasferreira/projects/zagros/04-mono/packages/data-access/moon.yml"
[DEBUG 18:24:43.909] moon_project_graph::project_graph_builder:run  Attempting to load packages/utils/moon.yml (optional)  id="utils" file="/Users/lucasferreira/projects/zagros/04-mono/packages/utils/moon.yml"
[DEBUG 18:24:43.909] moon_project_graph::project_graph_builder:run  Attempting to load services/geo-execution-order/moon.yml (optional)  id="geo-execution-order" file="/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order/moon.yml"
[DEBUG 18:24:43.911] moon_process::command_inspector:run  Running command git hash-object --stdin-paths - .moon/toolchain.yml .moon/workspace.yml services/geo-execution-order/moon.yml  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:24:43.918] moon_hash::hasher:run  Generated content hash  label="Project graph" hash="7b45dc46ea546400654940336606295ff313768fb3cbfbc75cf0acd3323099bc"
[DEBUG 18:24:43.918] moon_hash::hash_engine:run  Saving hash manifest  label="Project graph" manifest="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/hashes/7b45dc46ea546400654940336606295ff313768fb3cbfbc75cf0acd3323099bc.json"
[DEBUG 18:24:43.918] moon_project_graph::project_graph_builder:run  Generated hash for project graph  hash="7b45dc46ea546400654940336606295ff313768fb3cbfbc75cf0acd3323099bc"
[DEBUG 18:24:43.918] moon_cache_item::cache_item:run  Cache hit, reading item  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/projects.json"
[DEBUG 18:24:43.918] moon_project_graph::project_graph_builder:run  Loading project graph with 3 projects from cache  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/partialProjectGraph.json"
[DEBUG 18:24:43.919] moon_project_graph::project_graph_builder:run  Enforcing project constraints 
[DEBUG 18:24:43.919] moon_project_graph::project_graph:run  Creating project graph 
[DEBUG 18:24:43.919] moon_cli::queries::touched_files:run  Querying for touched files 
[DEBUG 18:24:43.919] moon_process::command_inspector:run  Running command git --version  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:24:43.924] moon_process::command_inspector:run  Running command git branch --show-current  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:24:43.930] moon_process::command_inspector:run  Running command git status --porcelain --untracked-files -z  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono")
[DEBUG 18:24:43.937] moon_cli::queries::touched_files:run  Filtering based on touched status "all" 
[DEBUG 18:24:43.937] moon_cli::queries::touched_files:run  Found touched files  files=["packages/data-access/src/schema/zagros_si/plagueCropTissueSymptomReference.ts", "packages/data-access/src/schema/zagros_si/plagueScientificName.ts", "services/geo-execution-order/moon.yml", ".nvmrc", "packages/data-access/src/json-to-schema.ts", "services/geo-execution-order/src/app.service.ts", "packages/data-access/project.json", "services/geo-execution-order/src/app.module.ts", "packages/data-access/src/schema/zagros_si/plantTissue.ts", "packages/data-access/tsconfig.lib.json", "services/geo-execution-order/src/app.controller.spec.ts", "services/geo-execution-order/src/plant/plant.controller.ts", "packages/data-access/docker-compose.yaml", "packages/data-access/.eslintrc.json", "packages/data-access/src/migrations/meta/_journal.json", "services/geo-execution-order/src/phenology/phenology.service.spec.ts", "services/geo-execution-order/src/crop/crop.controller.ts", "services/geo-execution-order/src/crop/crop.service.ts", "services/geo-execution-order/src/phenology/phenology.service.ts", "packages/utils/src/lib/utils.spec.ts", "packages/utils/README.md", "packages/utils/jest.config.ts", "services/geo-execution-order/src/crop/crop.query.params.ts", "services/geo-execution-order/src/plant/plant.controller.spec.ts", "services/geo-execution-order/test/jest-e2e.json", ".gitignore", "services/geo-execution-order/src/plague/plague.controller.ts", "packages/data-access/src/schema/zagros_si/crop.ts", "packages/data-access/tsconfig.json", "services/geo-execution-order/package.json", "packages/data-access/README.md", "packages/utils/index.ts", "packages/utils/tsconfig.lib.json", "services/geo-execution-order/.gitignore", "services/geo-execution-order/src/phenology/phenology.controller.spec.ts", "services/geo-execution-order/src/plague/plague.module.ts", "services/geo-execution-order/.dockerignore", "packages/data-access/index.ts", "packages/utils/env/index.ts", "packages/data-access/src/migrations/meta/0000_snapshot.json", "services/geo-execution-order/docker-compose.local.yaml", "packages/data-access/src/schema/zagros_si/plague.ts", "packages/data-access/src/db.ts", ".moon/toolchain.yml", "packages/data-access/src/schema/index.ts", "services/geo-execution-order/docker-compose.prod.yaml", "packages/data-access/src/migrations/0000_right_boom_boom.sql", "packages/utils/tsconfig.json", "packages/data-access/src/schema/zagros_si/cropVariety.ts", "services/geo-execution-order/src/plant/plant.service.ts", "services/geo-execution-order/README.md", "services/geo-execution-order/pnpm-lock.yaml", "services/geo-execution-order/wwwroot/swagger/assets/Logo_Zagros.jpg", "packages/utils/project.json", "packages/data-access/src/env.ts", "packages/data-access/drizzle.config.ts", "packages/utils/src/index.ts", "services/geo-execution-order/.prototools", "packages/data-access/src/schema/zagros_si/symptomFormula.ts", "services/geo-execution-order/.eslintrc.js", "pnpm-lock_BKP.yaml", "services/geo-execution-order/src/crop/crop.controller.spec.ts", "packages/data-access/src/schema/zagros_si/plaguePattern.ts", "packages/data-access/src/schema/zagros_si/plagueType.ts", "packages/data-access/src/schema/zagros_si/cropScientificName.ts", "packages/data-access/src/schema/zagros_si/plagueSymptom.ts", "packages/utils/tsconfig.spec.json", "services/geo-execution-order/drizzle.config.ts", "services/geo-execution-order/src/phenology/phenology.controller.ts", "packages/data-access/jest.config.ts", "packages/data-access/src/schema/zagros_si/phenology.ts", "packages/data-access/src/schema/zagros_si/zagrosSiSchema.ts", ".moon/workspace.yml", "packages/utils/src/lib/utils.ts", "services/geo-execution-order/src/crop/crop.service.spec.ts", "services/geo-execution-order/src/phenology/phenology.module.ts", "services/geo-execution-order/src/app.controller.ts", "services/geo-execution-order/src/crop/crop.module.ts", "services/geo-execution-order/src/plague/plague.service.ts", "packages/data-access/src/migrate.ts", "packages/data-access/.gitignore", "services/geo-execution-order/Dockerfile", "services/geo-execution-order/.env-example", "packages/utils/.eslintrc.json", "services/geo-execution-order/nest-cli.json", "services/geo-execution-order/src/main.ts", "services/geo-execution-order/.prettierrc", "services/geo-execution-order/tsconfig.json", "services/geo-execution-order/src/plague/plague.service.spec.ts", "services/geo-execution-order/src/plant/plant.module.ts", "services/geo-execution-order/tsconfig.build.json", "services/geo-execution-order/src/crop/crop.custom.validator.ts", "services/geo-execution-order/src/plant/plant.service.spec.ts", ".DS_Store", "services/geo-execution-order/test/app.e2e-spec.ts", "packages/data-access/tsconfig.spec.json", ".prototools", "package_BKP.json", "packages/data-access/src/[schema-name.]?table-name.to-schema.json.example", "services/geo-execution-order/src/plague/plague.controller.spec.ts"]
[DEBUG 18:24:43.938] moon_action_graph::action_graph_builder:run  Building action graph 
[DEBUG 18:24:43.938] moon_project_expander::project_expander:run  Expanding project geo-execution-order  id="geo-execution-order"
[DEBUG 18:24:43.938] moon_project_expander::project_expander:run  Expanding task geo-execution-order:build  target="geo-execution-order:build"
[DEBUG 18:24:43.938] moon_project_expander::project_expander:run  Expanding task geo-execution-order:dev  target="geo-execution-order:dev"
[DEBUG 18:24:43.938] moon_project_expander::project_expander:run  Expanding task geo-execution-order:prod  target="geo-execution-order:prod"
[DEBUG 18:24:43.938] moon_action_graph::action_graph_builder:run  Project geo-execution-order is not within the dependency manager workspace, dependencies will be installed within the project instead of the root 
[DEBUG 18:24:43.938] moon_action_graph::action_graph_builder:run  Adding SyncWorkspace to graph  index=0
[DEBUG 18:24:43.938] moon_action_graph::action_graph_builder:run  Adding SetupNodeTool(20.13.1) to graph  index=1
[DEBUG 18:24:43.938] moon_action_graph::action_graph_builder:run  Adding InstallNodeDepsInProject(20.13.1, geo-execution-order) to graph  index=2
[DEBUG 18:24:43.938] moon_action_graph::action_graph_builder:run  Adding SyncNodeProject(geo-execution-order) to graph  index=3
[DEBUG 18:24:43.938] moon_action_graph::action_graph_builder:run  Adding RunTask(geo-execution-order:build) to graph  index=4
[DEBUG 18:24:43.938] moon_action_graph::action_graph:run  Creating action graph 
[DEBUG 18:24:43.938] log:run  Running 5 actions  log.target="moon:action-pipeline" log.module_path="moon_action_pipeline::pipeline" log.file="crates/core/action-pipeline/src/pipeline.rs" log.line=88
[DEBUG 18:24:43.938] moon_action_graph::action_graph:run  Iterating action graph topologically  order=[0, 1, 2, 3, 4]
[DEBUG 18:24:43.938] log  Syncing workspace  log.target="moon:action:sync-workspace" log.module_path="moon_action_pipeline::actions::sync_workspace" log.file="crates/core/action-pipeline/src/actions/sync_workspace.rs" log.line=31
[DEBUG 18:24:43.938] log  Setting up Node 20.13.1 toolchain  log.target="moon:action:setup-tool" log.module_path="moon_action_pipeline::actions::setup_tool" log.file="crates/core/action-pipeline/src/actions/setup_tool.rs" log.line=36
[DEBUG 18:24:43.938] moon_cache_item::cache_item  Cache hit, reading item  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/toolNode-20.13.1.json"
[DEBUG 18:24:43.938] proto_core::proto_config  Merging loaded configs 
[DEBUG 18:24:43.938] proto_core::proto_config  Merged 4 configs 
[DEBUG 18:24:43.939] proto_core::tool  Creating tool node and instantiating plugin 
[DEBUG 18:24:43.954] proto_core::tool  Created tool node and its WASM runtime 
[DEBUG 18:24:43.954] proto_core::tool_manifest  Loading manifest.json  file="/Users/lucasferreira/.proto/tools/node/manifest.json"
[DEBUG 18:24:43.954] proto_core::tool  Creating tool pnpm and instantiating plugin 
[DEBUG 18:24:43.967] proto_core::tool  Created tool pnpm and its WASM runtime 
[DEBUG 18:24:43.968] proto_core::tool_manifest  Loading manifest.json  file="/Users/lucasferreira/.proto/tools/pnpm/manifest.json"
[DEBUG 18:24:43.968] proto_core::tool  Resolving a semantic version or alias  tool="node" initial_version="20.13.1"
[DEBUG 18:24:43.968] proto_core::tool  Resolved to 20.13.1 (without validation)  tool="node" version="20.13.1"
[DEBUG 18:24:43.968] proto_core::tool  Checking if tool is installed  tool="node" install_dir="/Users/lucasferreira/.proto/tools/node/20.13.1"
[DEBUG 18:24:43.968] proto_core::tool  Tool has already been installed, locating binaries and shims  tool="node" install_dir="/Users/lucasferreira/.proto/tools/node/20.13.1"
[DEBUG 18:24:43.968] proto_core::tool  Locating executable for tool  tool="node"
[DEBUG 18:24:43.968] proto_core::tool  Found an executable  tool="node" exe_path="/Users/lucasferreira/.proto/tools/node/20.13.1/bin/node"
[DEBUG 18:24:43.969] proto_core::tool  Creating shim  tool="node" shim="/Users/lucasferreira/.proto/shims/node" shim_version=13
[DEBUG 18:24:43.969] log  Node.js has already been setup  log.target="moon_node_tool::node_tool" log.module_path="moon_node_tool::node_tool" log.file="crates/node/tool/src/node_tool.rs" log.line=237
[DEBUG 18:24:43.969] proto_core::tool  Locating globals bin directory for tool  tool="node"
[DEBUG 18:24:43.969] proto_core::tool  Found a globals directory  tool="node" bin_dir="/Users/lucasferreira/.proto/tools/node/globals/bin"
[DEBUG 18:24:43.969] proto_core::tool  Resolving a semantic version or alias  tool="pnpm" initial_version="9.1.0"
[DEBUG 18:24:43.969] proto_core::tool  Resolved to 9.1.0 (without validation)  tool="pnpm" version="9.1.0"
[DEBUG 18:24:43.969] proto_core::tool  Checking if tool is installed  tool="pnpm" install_dir="/Users/lucasferreira/.proto/tools/pnpm/9.1.0"
[DEBUG 18:24:43.969] proto_core::tool  Tool has already been installed, locating binaries and shims  tool="pnpm" install_dir="/Users/lucasferreira/.proto/tools/pnpm/9.1.0"
[DEBUG 18:24:43.969] proto_core::tool  Locating executable for tool  tool="pnpm"
[DEBUG 18:24:43.969] proto_core::tool  Found an executable  tool="pnpm" exe_path="/Users/lucasferreira/.proto/tools/pnpm/9.1.0/bin/pnpm.cjs"
[DEBUG 18:24:43.969] proto_core::tool  Creating shim  tool="pnpm" shim="/Users/lucasferreira/.proto/shims/pnpm" shim_version=13
[DEBUG 18:24:43.969] proto_core::tool  Creating shim  tool="pnpm" shim="/Users/lucasferreira/.proto/shims/pnpx" shim_version=13
[DEBUG 18:24:43.969] proto_core::tool  Locating globals bin directory for tool  tool="pnpm"
[DEBUG 18:24:43.969] proto_core::tool  Found a globals directory  tool="pnpm" bin_dir="/Users/lucasferreira/Library/pnpm"
[DEBUG 18:24:43.969] log  pnpm has already been setup  log.target="moon_node_tool::pnpm_tool" log.module_path="moon_node_tool::pnpm_tool" log.file="crates/node/tool/src/pnpm_tool.rs" log.line=83
[DEBUG 18:24:43.970] log  Syncing Node.js version to ~/projects/zagros/04-mono/./.nvmrc  log.target="moon:node-platform:setup-tool" log.module_path="moon_node_platform::actions::setup_tool" log.file="crates/node/platform/src/actions/setup_tool.rs" log.line=97
[DEBUG 18:24:43.970] moon_cache_item::cache_item  Writing cache item  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/toolNode-20.13.1.json"
[DEBUG 18:24:43.970] log  Syncing project geo-execution-order  log.target="moon:action:sync-project" log.module_path="moon_action_pipeline::actions::sync_project" log.file="crates/core/action-pipeline/src/actions/sync_project.rs" log.line=32
[DEBUG 18:24:43.970] moon_cache::cache_engine  Writing cache  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/geo-execution-order/snapshot.json"
[DEBUG 18:24:43.992] moon_hash::hasher  Generated content hash  label="Install Node 20.13.1 deps" hash="0bfe617346f2f64cd9c153921194ff74aa9fdea10dcf118ba2c010d47fe96ba7"
[DEBUG 18:24:43.992] moon_hash::hash_engine  Saving hash manifest  label="Install Node 20.13.1 deps" manifest="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/hashes/0bfe617346f2f64cd9c153921194ff74aa9fdea10dcf118ba2c010d47fe96ba7.json"
[DEBUG 18:24:43.992] moon_cache_item::cache_item  Cache miss, item does not exist  cache="/Users/lucasferreira/projects/zagros/04-mono/.moon/cache/states/geo-execution-order/depsNode.json"
[DEBUG 18:24:43.992] log  Installing Node 20.13.1 dependencies in ~/projects/zagros/04-mono/services/geo-execution-order  log.target="moon:action:install-deps" log.module_path="moon_action_pipeline::actions::install_deps" log.file="crates/core/action-pipeline/src/actions/install_deps.rs" log.line=168
[DEBUG 18:24:43.992] log  Installing dependencies  log.target="moon:node-platform:install-deps" log.module_path="moon_node_platform::actions::install_deps" log.file="crates/node/platform/src/actions/install_deps.rs" log.line=31
[DEBUG 18:24:43.992] moon_process::command_inspector  Running command /bin/zsh -c 'pnpm install'  env_vars={} working_dir=Some("/Users/lucasferreira/projects/zagros/04-mono/services/geo-execution-order")
▪▪▪▪ pnpm install
pnpm install (in ./services/geo-execution-order)
Error: process::failed

  × Process /bin/zsh failed with a -1 exit code.

04-mono/services/geo-execution-order on  feat/moon [!?] via ⬢ v20.13.1 
➜ moon --version                                
moon 1.24.5
milesj commented 4 months ago

A -1 exit code means something is crashing hard.

Can you run it again with MOON_DEBUG_PROCESS_ENV=1 MOON_DEBUG_WASM=1.

lucasferreiralsf commented 4 months ago

Sent to you through discord due to sensitive data..

milesj commented 3 months ago

Ok I updated the errors in 1.25.1 to include signal information. Maybe this will help uncover the -1 exit.

milesj commented 3 months ago

Any movement here?

lucasferreiralsf commented 2 months ago

Hey @milesj sorry about the delay, I'm closing this issue, with the new logs I managed to solve this problem, it was caused because NestJS is using CommonJS and I have other projetcs with ECMAScript code and I missed some configurations. I took a look on the docs and managed to solve them. Thanks for the help!