moonrepo / proto

A pluggable multi-language version manager.
https://moonrepo.dev/proto
MIT License
634 stars 30 forks source link

proto use command causes error #462

Closed nakanoasaservice closed 3 months ago

nakanoasaservice commented 5 months ago

What version?

0.34.3

Which command?

proto use --log trace

What happened?

$ proto use
Error: plugin::call_func::failed

  × unexpected character 'D' while parsing major version number

.prototools config is:

node = "20.10.0"
pnpm = "8.15.4"

After investigating, I found that the cause was the following specification for engines in package.json.

  "engines": {
    "node": "20.x",
    "npm": "Don't use 'npm'!!! Please use 'pnpm'!!!",
    "yarn": "Don't use 'yarn'!!! Please use 'pnpm'!!!"
  },

Trace logs?

[DEBUG 2024-04-12 14:59:04.307] proto  Running proto v0.34.3  bin="proto" args=["use", "--log", "trace"] pid=30812
[TRACE 14:59:04.308] starbase::app  Running startup phase with 2 systems 
[DEBUG 14:59:04.308] proto_core::proto:detect_proto_env  Creating proto environment, detecting store  store="/Users/nakano/.proto"
[TRACE 14:59:04.308] starbase::app  Running analyze phase with 3 systems 
[TRACE 14:59:04.308] proto_core::proto_config:load_proto_configs  Traversing upwards and loading .prototools files 
[DEBUG 14:59:04.308] proto_core::proto_config:load_proto_configs  Loading .prototools  file="/Users/nakano/ghq/github.com/dentalight-inc/dentalight-monorepo/.prototools"
[TRACE 14:59:04.308] starbase_utils::fs:load_proto_configs  Reading file  file="/Users/nakano/ghq/github.com/dentalight-inc/dentalight-monorepo/.prototools"
[TRACE 14:59:04.308] schematic::config::loader:load_proto_configs  Loading partial configuration  config="ProtoConfig"
[TRACE 14:59:04.308] schematic::config::loader:load_proto_configs  Creating layer from source  config="ProtoConfig" source="<code>"
[TRACE 14:59:04.308] schematic::config::loader:load_proto_configs  Merging partial layers into a final result  config="ProtoConfig"
[DEBUG 14:59:04.308] proto_core::proto_config:load_proto_configs  Loading .prototools  file="/Users/nakano/.proto/.prototools"
[TRACE 14:59:04.308] starbase_utils::fs:load_proto_configs  Opening file  file="/Users/nakano/.proto/.prototools"
[TRACE 14:59:04.308] starbase_utils::fs_lock:load_proto_configs  Locking file  file="/Users/nakano/.proto/.prototools"
[TRACE 14:59:04.308] starbase_utils::fs_lock:load_proto_configs  Unlocking file  file="/Users/nakano/.proto/.prototools"
[TRACE 14:59:04.308] schematic::config::loader:load_proto_configs  Loading partial configuration  config="ProtoConfig"
[TRACE 14:59:04.308] schematic::config::loader:load_proto_configs  Creating layer from source  config="ProtoConfig" source="<code>"
[TRACE 14:59:04.309] schematic::config::loader:load_proto_configs  Merging partial layers into a final result  config="ProtoConfig"
[DEBUG 14:59:04.309] proto_core::proto_config:load_proto_configs  Merging loaded configs 
[DEBUG 14:59:04.309] proto_core::proto_config:load_proto_configs  Merged 2 configs 
[TRACE 14:59:04.309] starbase::app  Running execute phase with 3 systems 
[TRACE 14:59:04.309] starbase_utils::net:check_for_new_version:is_offline  Checking for an internet connection  timeout=750
[TRACE 14:59:04.309] starbase_utils::net::offline  Resolving 1.1.1.1:53 
[DEBUG 14:59:04.309] proto::commands::install_all:install_all  Loading tools and plugins from .prototools 
[DEBUG 14:59:04.309] proto_core::tool_loader:install_all  Finding a configured plugin  tool="internal-schema"
[DEBUG 14:59:04.309] proto_core::tool_loader:install_all  Using a built-in plugin  plugin="source:https://github.com/moonrepo/schema-plugin/releases/download/v0.11.0/schema_plugin.wasm"
[TRACE 14:59:04.309] warpgate::loader:install_all  Creating plugin loader  cache_dir="/Users/nakano/.proto/plugins"
[TRACE 14:59:04.309] warpgate::loader:install_all  Loading plugin internal-schema  id="internal-schema"
[TRACE 14:59:04.309] starbase_utils::fs:install_all  Reading file metadata  file="/Users/nakano/.proto/plugins/internal-schema-b14e3f7135675c040f2a8314d6454241d59274b03d0cfabc34f6a9ae3b4d7810.wasm"
[TRACE 14:59:04.309] warpgate::loader:install_all  Plugin already downloaded and cached  id="internal-schema" path="/Users/nakano/.proto/plugins/internal-schema-b14e3f7135675c040f2a8314d6454241d59274b03d0cfabc34f6a9ae3b4d7810.wasm"
[TRACE 14:59:04.309] warpgate::loader  Loading plugin yarn  id="yarn"
[TRACE 14:59:04.309] starbase_utils::fs  Reading file metadata  file="/Users/nakano/.proto/plugins/yarn-8ef086caddb841c7adede0a63d4104b0cdec608ef2756bfe9fb08606380008be.wasm"
[TRACE 14:59:04.309] warpgate::loader  Plugin already downloaded and cached  id="yarn" path="/Users/nakano/.proto/plugins/yarn-8ef086caddb841c7adede0a63d4104b0cdec608ef2756bfe9fb08606380008be.wasm"
[TRACE 14:59:04.309] warpgate::loader  Loading plugin node  id="node"
[TRACE 14:59:04.309] warpgate::loader  Loading plugin pnpm  id="pnpm"
[TRACE 14:59:04.310] starbase_utils::fs  Reading file metadata  file="/Users/nakano/.proto/plugins/node-f5cf3856dba967c00f6ed3efe9f27b43e26be9ac7a1e6bc99d179ce66054379b.wasm"
[TRACE 14:59:04.310] starbase_utils::fs  Reading file metadata  file="/Users/nakano/.proto/plugins/pnpm-8ef086caddb841c7adede0a63d4104b0cdec608ef2756bfe9fb08606380008be.wasm"
[TRACE 14:59:04.310] warpgate::loader  Loading plugin go  id="go"
[TRACE 14:59:04.310] warpgate::loader  Plugin already downloaded and cached  id="pnpm" path="/Users/nakano/.proto/plugins/pnpm-8ef086caddb841c7adede0a63d4104b0cdec608ef2756bfe9fb08606380008be.wasm"
[TRACE 14:59:04.310] starbase_utils::fs  Reading file metadata  file="/Users/nakano/.proto/plugins/go-dc6c9349117cba6464755e7af8e37dfcdc081088273fc7e2c5830931f3484238.wasm"
[DEBUG 14:59:04.310] proto_core::tool_loader  Loading WASM plugin  source="/Users/nakano/.proto/plugins/pnpm-8ef086caddb841c7adede0a63d4104b0cdec608ef2756bfe9fb08606380008be.wasm"
[TRACE 14:59:04.310] warpgate::loader  Loading plugin npm  id="npm"
[TRACE 14:59:04.310] warpgate::loader  Loading plugin deno  id="deno"
[TRACE 14:59:04.310] starbase_utils::fs  Reading file metadata  file="/Users/nakano/.proto/plugins/deno-8189f7b6aad2473bc8cb43e2c69f465deab065b72d3915c4dc095c7e1c323b59.wasm"
[TRACE 14:59:04.310] warpgate::loader  Plugin already downloaded and cached  id="go" path="/Users/nakano/.proto/plugins/go-dc6c9349117cba6464755e7af8e37dfcdc081088273fc7e2c5830931f3484238.wasm"
[TRACE 14:59:04.310] warpgate::loader  Loading plugin rust  id="rust"
[DEBUG 14:59:04.310] proto_core::tool_loader  Loading WASM plugin  source="/Users/nakano/.proto/plugins/yarn-8ef086caddb841c7adede0a63d4104b0cdec608ef2756bfe9fb08606380008be.wasm"
[TRACE 14:59:04.310] starbase_utils::fs  Reading file metadata  file="/Users/nakano/.proto/plugins/rust-dee585c909df242ff0dd45f00f60eff5a350db87fc4f557718c6ca9030a75f61.wasm"
[TRACE 14:59:04.310] warpgate::loader  Loading plugin python  id="python"
[TRACE 14:59:04.310] warpgate::loader  Plugin already downloaded and cached  id="node" path="/Users/nakano/.proto/plugins/node-f5cf3856dba967c00f6ed3efe9f27b43e26be9ac7a1e6bc99d179ce66054379b.wasm"
[TRACE 14:59:04.310] starbase_utils::fs  Reading file metadata  file="/Users/nakano/.proto/plugins/npm-8ef086caddb841c7adede0a63d4104b0cdec608ef2756bfe9fb08606380008be.wasm"
[TRACE 14:59:04.310] warpgate::loader  Loading plugin bun  id="bun"
[TRACE 14:59:04.310] warpgate::loader  Plugin already downloaded and cached  id="deno" path="/Users/nakano/.proto/plugins/deno-8189f7b6aad2473bc8cb43e2c69f465deab065b72d3915c4dc095c7e1c323b59.wasm"
[TRACE 14:59:04.310] starbase_utils::fs  Reading file metadata  file="/Users/nakano/.proto/plugins/bun-c646bf0d7c78f69528a06cf3c777330e0ca9f4dd2fbc04ca527259d74d5c1ecf.wasm"
[DEBUG 14:59:04.310] proto_core::tool_loader  Loading WASM plugin  source="/Users/nakano/.proto/plugins/deno-8189f7b6aad2473bc8cb43e2c69f465deab065b72d3915c4dc095c7e1c323b59.wasm"
[TRACE 14:59:04.310] warpgate::loader  Plugin already downloaded and cached  id="rust" path="/Users/nakano/.proto/plugins/rust-dee585c909df242ff0dd45f00f60eff5a350db87fc4f557718c6ca9030a75f61.wasm"
[TRACE 14:59:04.310] warpgate::loader  Plugin already downloaded and cached  id="bun" path="/Users/nakano/.proto/plugins/bun-c646bf0d7c78f69528a06cf3c777330e0ca9f4dd2fbc04ca527259d74d5c1ecf.wasm"
[TRACE 14:59:04.310] starbase_utils::fs  Reading file metadata  file="/Users/nakano/.proto/plugins/python-b9493bb66417130c3a39c64107dfeb41bbdcaba202b3f50466b93ef70c7c4e3e.wasm"
[DEBUG 14:59:04.310] proto_core::tool_loader  Loading WASM plugin  source="/Users/nakano/.proto/plugins/bun-c646bf0d7c78f69528a06cf3c777330e0ca9f4dd2fbc04ca527259d74d5c1ecf.wasm"
[TRACE 14:59:04.310] warpgate::plugin  Storing plugin identifier  id="pnpm"
[DEBUG 14:59:04.310] proto_core::tool_loader  Loading WASM plugin  source="/Users/nakano/.proto/plugins/node-f5cf3856dba967c00f6ed3efe9f27b43e26be9ac7a1e6bc99d179ce66054379b.wasm"
[DEBUG 14:59:04.310] proto_core::tool_loader  Loading WASM plugin  source="/Users/nakano/.proto/plugins/go-dc6c9349117cba6464755e7af8e37dfcdc081088273fc7e2c5830931f3484238.wasm"
[TRACE 14:59:04.310] warpgate::plugin  Storing plugin identifier  id="node"
[TRACE 14:59:04.310] warpgate::plugin  Storing plugin identifier  id="deno"
[DEBUG 14:59:04.310] proto_core::tool_loader  Loading WASM plugin  source="/Users/nakano/.proto/plugins/rust-dee585c909df242ff0dd45f00f60eff5a350db87fc4f557718c6ca9030a75f61.wasm"
[TRACE 14:59:04.310] warpgate::plugin  Storing plugin identifier  id="go"
[TRACE 14:59:04.310] warpgate::plugin  Storing host environment  env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/nakano"}}
[TRACE 14:59:04.310] warpgate::loader  Plugin already downloaded and cached  id="python" path="/Users/nakano/.proto/plugins/python-b9493bb66417130c3a39c64107dfeb41bbdcaba202b3f50466b93ef70c7c4e3e.wasm"
[TRACE 14:59:04.310] warpgate::plugin  Storing plugin identifier  id="yarn"
[TRACE 14:59:04.311] warpgate::plugin  Storing host environment  env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/nakano"}}
[TRACE 14:59:04.310] warpgate::plugin  Storing host environment  env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/nakano"}}
[DEBUG 14:59:04.311] proto_core::tool  Creating tool pnpm and instantiating plugin 
[TRACE 14:59:04.310] warpgate::loader  Plugin already downloaded and cached  id="npm" path="/Users/nakano/.proto/plugins/npm-8ef086caddb841c7adede0a63d4104b0cdec608ef2756bfe9fb08606380008be.wasm"
[DEBUG 14:59:04.311] proto_core::tool_loader  Loading WASM plugin  source="/Users/nakano/.proto/plugins/npm-8ef086caddb841c7adede0a63d4104b0cdec608ef2756bfe9fb08606380008be.wasm"
[TRACE 14:59:04.311] warpgate::plugin  Storing plugin identifier  id="npm"
[TRACE 14:59:04.311] warpgate::plugin  Storing plugin identifier  id="rust"
[TRACE 14:59:04.311] warpgate::plugin  Storing host environment  env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/nakano"}}
[TRACE 14:59:04.311] warpgate::plugin  Storing host environment  env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/nakano"}}
[DEBUG 14:59:04.311] proto_core::tool  Creating tool npm and instantiating plugin 
[DEBUG 14:59:04.311] proto_core::tool  Creating tool deno and instantiating plugin 
[DEBUG 14:59:04.311] proto_core::tool_loader  Loading WASM plugin  source="/Users/nakano/.proto/plugins/python-b9493bb66417130c3a39c64107dfeb41bbdcaba202b3f50466b93ef70c7c4e3e.wasm"
[TRACE 14:59:04.311] warpgate::plugin  Storing plugin identifier  id="python"
[TRACE 14:59:04.311] warpgate::plugin  Storing host environment  env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/nakano"}}
[TRACE 14:59:04.311] warpgate::plugin  Storing host environment  env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/nakano"}}
[DEBUG 14:59:04.311] proto_core::tool  Creating tool yarn and instantiating plugin 
[TRACE 14:59:04.310] warpgate::plugin  Storing host environment  env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/nakano"}}
[DEBUG 14:59:04.311] proto_core::tool  Creating tool node and instantiating plugin 
[DEBUG 14:59:04.311] proto_core::tool  Creating tool go and instantiating plugin 
[DEBUG 14:59:04.311] proto_core::tool  Creating tool rust and instantiating plugin 
[TRACE 14:59:04.310] warpgate::plugin  Storing plugin identifier  id="bun"
[TRACE 14:59:04.311] warpgate::plugin  Storing host environment  env={"arch":"arm64","libc":"gnu","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/nakano"}}
[DEBUG 14:59:04.311] proto_core::tool  Creating tool bun and instantiating plugin 
[DEBUG 14:59:04.311] proto_core::tool  Creating tool python and instantiating plugin 
[TRACE 14:59:04.326] starbase_utils::net:check_for_new_version:is_offline  Online! 
[TRACE 14:59:04.326] starbase_utils::fs:check_for_new_version  Reading file  file="/Users/nakano/.proto/temp/.last-version-check"
[TRACE 14:59:04.328] warpgate::plugin  Created plugin container  id="bun" plugin="bcda5f00-268c-4c9e-945e-4fedda1b3d41"
[DEBUG 14:59:04.328] proto_core::tool  Created tool bun and its WASM runtime 
[TRACE 14:59:04.328] warpgate::plugin  Calling plugin function register_tool  id="bun" plugin="bcda5f00-268c-4c9e-945e-4fedda1b3d41" input={"id":"bun"}
[TRACE 14:59:04.328] warpgate::plugin  Called plugin function register_tool  id="bun" plugin="bcda5f00-268c-4c9e-945e-4fedda1b3d41" output={"inventory":{},"name":"Bun","plugin_version":"0.11.1","self_upgrade_commands":["upgrade"],"type":"Language"}
[DEBUG 14:59:04.328] proto_core::tool_manifest  Loading manifest.json  file="/Users/nakano/.proto/tools/bun/manifest.json"
[TRACE 14:59:04.329] warpgate::plugin  Created plugin container  id="go" plugin="b3ee6693-05c5-467b-8791-ae6f3b58a032"
[DEBUG 14:59:04.329] proto_core::tool  Created tool go and its WASM runtime 
[TRACE 14:59:04.329] warpgate::plugin  Calling plugin function register_tool  id="go" plugin="b3ee6693-05c5-467b-8791-ae6f3b58a032" input={"id":"go"}
[TRACE 14:59:04.329] warpgate::plugin  Called plugin function register_tool  id="go" plugin="b3ee6693-05c5-467b-8791-ae6f3b58a032" output={"inventory":{},"name":"Go","plugin_version":"0.10.2","type":"Language"}
[DEBUG 14:59:04.329] proto_core::tool_manifest  Loading manifest.json  file="/Users/nakano/.proto/tools/go/manifest.json"
[TRACE 14:59:04.352] warpgate::plugin  Created plugin container  id="deno" plugin="6d48f7c3-e137-49f1-bc15-7225cbacab8f"
[DEBUG 14:59:04.352] proto_core::tool  Created tool deno and its WASM runtime 
[TRACE 14:59:04.352] warpgate::plugin  Calling plugin function register_tool  id="deno" plugin="6d48f7c3-e137-49f1-bc15-7225cbacab8f" input={"id":"deno"}
[TRACE 14:59:04.352] warpgate::plugin  Called plugin function register_tool  id="deno" plugin="6d48f7c3-e137-49f1-bc15-7225cbacab8f" output={"inventory":{},"name":"Deno","plugin_version":"0.10.2","self_upgrade_commands":["upgrade"],"type":"Language"}
[DEBUG 14:59:04.352] proto_core::tool_manifest  Loading manifest.json  file="/Users/nakano/.proto/tools/deno/manifest.json"
[TRACE 14:59:04.356] warpgate::plugin  Created plugin container  id="python" plugin="48c3b9aa-378c-4b91-8fe6-52780dc847a8"
[DEBUG 14:59:04.356] proto_core::tool  Created tool python and its WASM runtime 
[TRACE 14:59:04.356] warpgate::plugin  Calling plugin function register_tool  id="python" plugin="48c3b9aa-378c-4b91-8fe6-52780dc847a8" input={"id":"python"}
[TRACE 14:59:04.356] warpgate::plugin  Called plugin function register_tool  id="python" plugin="48c3b9aa-378c-4b91-8fe6-52780dc847a8" output={"inventory":{},"name":"Python","plugin_version":"0.9.0","type":"Language"}
[DEBUG 14:59:04.356] proto_core::tool_manifest  Loading manifest.json  file="/Users/nakano/.proto/tools/python/manifest.json"
[TRACE 14:59:04.356] warpgate::plugin  Created plugin container  id="node" plugin="4eda60e5-57fe-4449-a2ef-626950c0d063"
[DEBUG 14:59:04.356] proto_core::tool  Created tool node and its WASM runtime 
[TRACE 14:59:04.356] warpgate::plugin  Calling plugin function register_tool  id="node" plugin="4eda60e5-57fe-4449-a2ef-626950c0d063" input={"id":"node"}
[TRACE 14:59:04.357] warpgate::plugin  Called plugin function register_tool  id="node" plugin="4eda60e5-57fe-4449-a2ef-626950c0d063" output={"inventory":{},"name":"Node.js","plugin_version":"0.10.3","type":"Language"}
[DEBUG 14:59:04.357] proto_core::tool_manifest  Loading manifest.json  file="/Users/nakano/.proto/tools/node/manifest.json"
[TRACE 14:59:04.357] starbase_utils::fs  Opening file  file="/Users/nakano/.proto/tools/node/manifest.json"
[TRACE 14:59:04.357] starbase_utils::fs_lock  Locking file  file="/Users/nakano/.proto/tools/node/manifest.json"
[TRACE 14:59:04.357] starbase_utils::fs_lock  Unlocking file  file="/Users/nakano/.proto/tools/node/manifest.json"
[TRACE 14:59:04.357] warpgate::plugin  Created plugin container  id="pnpm" plugin="199bbba8-b413-4b93-8b1c-92afebef3fc7"
[DEBUG 14:59:04.357] proto_core::tool  Created tool pnpm and its WASM runtime 
[TRACE 14:59:04.357] warpgate::plugin  Calling plugin function register_tool  id="pnpm" plugin="199bbba8-b413-4b93-8b1c-92afebef3fc7" input={"id":"pnpm"}
[TRACE 14:59:04.357] warpgate::plugin  Created plugin container  id="yarn" plugin="4813e98a-b90f-483a-9434-9fc92f96ed8a"
[DEBUG 14:59:04.357] proto_core::tool  Created tool yarn and its WASM runtime 
[TRACE 14:59:04.357] warpgate::plugin  Calling plugin function register_tool  id="yarn" plugin="4813e98a-b90f-483a-9434-9fc92f96ed8a" input={"id":"yarn"}
[TRACE 14:59:04.357] warpgate::plugin  Created plugin container  id="npm" plugin="a754ff69-a2ce-4cf5-9fab-c1c2ec5ce7dc"
[DEBUG 14:59:04.357] proto_core::tool  Created tool npm and its WASM runtime 
[TRACE 14:59:04.357] warpgate::plugin  Created plugin container  id="rust" plugin="fb41d089-e168-4fd2-ad38-829a64929f7a"
[TRACE 14:59:04.357] warpgate::plugin  Called plugin function register_tool  id="pnpm" plugin="199bbba8-b413-4b93-8b1c-92afebef3fc7" output={"inventory":{},"name":"pnpm","plugin_version":"0.10.3","type":"DependencyManager"}
[DEBUG 14:59:04.357] proto_core::tool_manifest  Loading manifest.json  file="/Users/nakano/.proto/tools/pnpm/manifest.json"
[TRACE 14:59:04.357] warpgate::plugin  Calling plugin function register_tool  id="npm" plugin="a754ff69-a2ce-4cf5-9fab-c1c2ec5ce7dc" input={"id":"npm"}
[DEBUG 14:59:04.357] proto_core::tool  Created tool rust and its WASM runtime 
[TRACE 14:59:04.357] warpgate::plugin  Called plugin function register_tool  id="yarn" plugin="4813e98a-b90f-483a-9434-9fc92f96ed8a" output={"inventory":{},"name":"yarn","plugin_version":"0.10.3","type":"DependencyManager"}
[TRACE 14:59:04.357] starbase_utils::fs  Opening file  file="/Users/nakano/.proto/tools/pnpm/manifest.json"
[DEBUG 14:59:04.357] proto_core::tool_manifest  Loading manifest.json  file="/Users/nakano/.proto/tools/yarn/manifest.json"
[TRACE 14:59:04.357] starbase_utils::fs_lock  Locking file  file="/Users/nakano/.proto/tools/pnpm/manifest.json"
[TRACE 14:59:04.357] warpgate::plugin  Calling plugin function register_tool  id="rust" plugin="fb41d089-e168-4fd2-ad38-829a64929f7a" input={"id":"rust"}
[TRACE 14:59:04.357] starbase_utils::fs_lock  Unlocking file  file="/Users/nakano/.proto/tools/pnpm/manifest.json"
[TRACE 14:59:04.358] warpgate::host_funcs  Read environment variable from host  name="RUSTUP_HOME" value=""
[TRACE 14:59:04.358] warpgate::plugin  Called plugin function register_tool  id="npm" plugin="a754ff69-a2ce-4cf5-9fab-c1c2ec5ce7dc" output={"default_version":"bundled","inventory":{},"name":"npm","plugin_version":"0.10.3","type":"DependencyManager"}
[TRACE 14:59:04.358] warpgate::host_funcs  Converted a path into a virtual path  original_path="/Users/nakano/.rustup/toolchains" virtual_path="/userhome/.rustup/toolchains"
[TRACE 14:59:04.358] warpgate::plugin  Called plugin function register_tool  id="rust" plugin="fb41d089-e168-4fd2-ad38-829a64929f7a" output={"default_version":"stable","inventory":{"disable_progress_bars":true,"override_dir":{"path":"/userhome/.rustup/toolchains","virtual_prefix":"/userhome","real_prefix":"/Users/nakano"},"version_suffix":"-aarch64-apple-darwin"},"name":"Rust","plugin_version":"0.9.1","type":"Language"}
[DEBUG 14:59:04.358] proto_core::tool_manifest  Loading manifest.json  file="/Users/nakano/.proto/tools/npm/manifest.json"
[DEBUG 14:59:04.358] proto_core::tool_manifest  Loading manifest.json  file="/Users/nakano/.proto/tools/rust/manifest.json"
[DEBUG 14:59:04.358] proto::commands::install_all:install_all  Detecting tool versions to install 
[DEBUG 14:59:04.358] proto_core::proto_config:install_all  Merging loaded configs without global 
[DEBUG 14:59:04.358] proto_core::proto_config:install_all  Merged 1 configs 
[TRACE 14:59:04.358] warpgate::plugin:install_all  Calling plugin function detect_version_files  id="deno" plugin="6d48f7c3-e137-49f1-bc15-7225cbacab8f" input={}
[TRACE 14:59:04.358] warpgate::plugin:install_all  Called plugin function detect_version_files  id="deno" plugin="6d48f7c3-e137-49f1-bc15-7225cbacab8f" output={"files":[".dvmrc"]}
[TRACE 14:59:04.358] proto_core::tool:install_all  Attempting to detect a version from directory  tool="deno" dir="/Users/nakano/ghq/github.com/dentalight-inc/dentalight-monorepo"
[TRACE 14:59:04.358] warpgate::plugin:install_all  Calling plugin function detect_version_files  id="go" plugin="b3ee6693-05c5-467b-8791-ae6f3b58a032" input={}
[TRACE 14:59:04.358] warpgate::plugin:install_all  Called plugin function detect_version_files  id="go" plugin="b3ee6693-05c5-467b-8791-ae6f3b58a032" output={"files":["go.mod","go.work"]}
[TRACE 14:59:04.358] proto_core::tool:install_all  Attempting to detect a version from directory  tool="go" dir="/Users/nakano/ghq/github.com/dentalight-inc/dentalight-monorepo"
[TRACE 14:59:04.358] warpgate::plugin:install_all  Calling plugin function detect_version_files  id="npm" plugin="a754ff69-a2ce-4cf5-9fab-c1c2ec5ce7dc" input={}
[TRACE 14:59:04.358] warpgate::plugin:install_all  Called plugin function detect_version_files  id="npm" plugin="a754ff69-a2ce-4cf5-9fab-c1c2ec5ce7dc" output={"files":["package.json"],"ignore":["node_modules"]}
[TRACE 14:59:04.358] proto_core::tool:install_all  Attempting to detect a version from directory  tool="npm" dir="/Users/nakano/ghq/github.com/dentalight-inc/dentalight-monorepo"
[TRACE 14:59:04.358] starbase_utils::fs:install_all  Reading file  file="/Users/nakano/ghq/github.com/dentalight-inc/dentalight-monorepo/package.json"
[TRACE 14:59:04.358] warpgate::plugin:install_all  Calling plugin function parse_version_file  id="npm" plugin="a754ff69-a2ce-4cf5-9fab-c1c2ec5ce7dc" input={"content":"{\n  \"name\": \"dentalight-monorepo\",\n  \"version\": \"0.0.0\",\n  \"license\": \"UNLICENSE\",\n  \"scripts\": {\n    \"start\": \"nx serve\",\n    \"build\": \"nx build\",\n    \"test\": \"nx test\",\n    \"prepare\": \"husky install\",\n    \"nx\": \"nx\",\n    \"lint\": \"eslint ./src\",\n    \"lint:debug\": \"eslint ./src --debug\",\n    \"lint:fix\": \"eslint ./src --fix\"\n  },\n  \"private\": true,\n  \"engines\": {\n    \"node\": \"20.x\",\n    \"npm\": \"Don't use 'npm'!!! Please use 'pnpm'!!!\",\n    \"yarn\": \"Don't use 'yarn'!!! Please use 'pnpm'!!!\"\n  },\n  \"dependencies\": {\n    \"@as-integrations/fastify\": \"^1.3.2\",\n    \"@aws-amplify/ui-react\": \"^6.1.6\",\n    \"@aws-sdk/client-cognito-identity-provider\": \"^3.332.0\",\n    \"@azure/functions\": \"^4.1.0\",\n    \"@azure/identity\": \"^2.1.0\",\n    \"@azure/service-bus\": \"^7.9.0\",\n    \"@azure/storage-blob\": \"^12.14.0\",\n    \"@clerk/clerk-sdk-node\": \"^4.13.12\",\n    \"@clerk/localizations\": \"2.0.0-beta.17\",\n    \"@clerk/nextjs\": \"5.0.0-beta.41\",\n    \"@dnd-kit/core\": \"^6.0.8\",\n    \"@dnd-kit/sortable\": \"^7.0.2\",\n    \"@dnd-kit/utilities\": \"^3.2.1\",\n    \"@emotion/css\": \"^11.11.0\",\n    \"@emotion/react\": \"11.11.1\",\n    \"@emotion/server\": \"11.10.0\",\n    \"@emotion/styled\": \"11.11.0\",\n    \"@excalidraw/excalidraw\": \"^0.15.2\",\n    \"@ffmpeg/core\": \"^0.11.0\",\n    \"@ffmpeg/ffmpeg\": \"^0.11.6\",\n    \"@formkit/tempo\": \"^0.0.13\",\n    \"@hookform/resolvers\": \"^3.3.4\",\n    \"@mui/icons-material\": \"^5.14.18\",\n    \"@mui/lab\": \"5.0.0-alpha.155\",\n    \"@mui/material\": \"^5.14.18\",\n    \"@mui/system\": \"^5.14.18\",\n    \"@mui/x-data-grid\": \"^6.14.0\",\n    \"@mui/x-date-pickers\": \"6.19.0\",\n    \"@nestjs/apollo\": \"^11.0.5\",\n    \"@nestjs/common\": \"10.0.5\",\n    \"@nestjs/config\": \"^2.3.2\",\n    \"@nestjs/core\": \"10.0.5\",\n    \"@nestjs/graphql\": \"^11.0.5\",\n    \"@nestjs/platform-express\": \"10.0.5\",\n    \"@nestjs/platform-fastify\": \"^9.4.1\",\n    \"@nivo/bar\": \"^0.85.1\",\n    \"@nivo/core\": \"^0.85.1\",\n    \"@nivo/radar\": \"^0.85.1\",\n    \"@notionhq/client\": \"^2.2.13\",\n    \"@pnpm/modules-yaml\": \"^12.1.7\",\n    \"@pothos/core\": \"^3.30.0\",\n    \"@pothos/plugin-errors\": \"^3.11.1\",\n    \"@pothos/plugin-validation\": \"^3.9.1\",\n    \"@prisma/client\": \"^5.5.2\",\n    \"@radix-ui/react-alert-dialog\": \"^1.0.5\",\n    \"@radix-ui/react-checkbox\": \"^1.0.4\",\n    \"@radix-ui/react-collapsible\": \"^1.0.3\",\n    \"@radix-ui/react-dialog\": \"^1.0.5\",\n    \"@radix-ui/react-dropdown-menu\": \"^2.0.6\",\n    \"@radix-ui/react-icons\": \"^1.3.0\",\n    \"@radix-ui/react-label\": \"^2.0.2\",\n    \"@radix-ui/react-popover\": \"^1.0.7\",\n    \"@radix-ui/react-radio-group\": \"^1.1.3\",\n    \"@radix-ui/react-scroll-area\": \"^1.0.5\",\n    \"@radix-ui/react-select\": \"^2.0.0\",\n    \"@radix-ui/react-separator\": \"^1.0.3\",\n    \"@radix-ui/react-slot\": \"^1.0.2\",\n    \"@radix-ui/react-switch\": \"^1.0.3\",\n    \"@radix-ui/react-tabs\": \"^1.0.4\",\n    \"@radix-ui/react-toggle\": \"^1.0.3\",\n    \"@radix-ui/react-toggle-group\": \"^1.0.4\",\n    \"@radix-ui/react-tooltip\": \"^1.0.7\",\n    \"@sendgrid/mail\": \"^7.7.0\",\n    \"@slack/web-api\": \"^6.10.0\",\n    \"@slack/webhook\": \"^6.1.0\",\n    \"@swc/helpers\": \"~0.5.2\",\n    \"@tanstack/react-query\": \"^4.29.7\",\n    \"@tanstack/react-query-devtools\": \"^4.29.7\",\n    \"@tiptap/core\": \"^2.2.1\",\n    \"@tiptap/extension-character-count\": \"^2.2.4\",\n    \"@tiptap/extension-color\": \"^2.2.1\",\n    \"@tiptap/extension-document\": \"^2.2.1\",\n    \"@tiptap/extension-list-item\": \"^2.2.1\",\n    \"@tiptap/extension-paragraph\": \"^2.2.1\",\n    \"@tiptap/extension-placeholder\": \"^2.2.4\",\n    \"@tiptap/extension-text\": \"^2.2.1\",\n    \"@tiptap/extension-text-style\": \"^2.2.1\",\n    \"@tiptap/pm\": \"^2.2.1\",\n    \"@tiptap/react\": \"^2.2.1\",\n    \"@tiptap/starter-kit\": \"^2.2.1\",\n    \"@urql/core\": \"^4.1.2\",\n    \"@urql/exchange-request-policy\": \"^1.0.2\",\n    \"@urql/next\": \"^1.1.0\",\n    \"ahooks\": \"^3.7.10\",\n    \"aws-amplify\": \"^6.0.28\",\n    \"class-transformer\": \"^0.5.1\",\n    \"class-validator\": \"^0.14.0\",\n    \"class-variance-authority\": \"^0.7.0\",\n    \"clsx\": \"^2.1.0\",\n    \"cmdk\": \"^0.2.1\",\n    \"core-js\": \"3.36.1\",\n    \"cross-fetch\": \"^3.1.6\",\n    \"date-fns\": \"^3.2.0\",\n    \"dedent\": \"^1.5.1\",\n    \"exif-js\": \"^2.3.0\",\n    \"firebase\": \"^9.22.0\",\n    \"firebase-admin\": \"^11.8.0\",\n    \"fluent-ffmpeg\": \"^2.1.2\",\n    \"fs-extra\": \"^10.1.0\",\n    \"gm\": \"^1.25.0\",\n    \"graphql\": \"^16.8.1\",\n    \"graphql-request\": \"^6.1.0\",\n    \"graphql-scalars\": \"^1.21.3\",\n    \"graphql-ws\": \"^5.13.1\",\n    \"graphql-yoga\": \"^5.1.1\",\n    \"ip\": \"^1.1.8\",\n    \"jotai\": \"^2.1.0\",\n    \"just-zip-it\": \"^3.2.0\",\n    \"ken-all\": \"^0.4.1\",\n    \"lucide-react\": \"^0.303.0\",\n    \"nestjs-pino\": \"^3.2.0\",\n    \"neverthrow\": \"^6.1.0\",\n    \"next\": \"14.1.4\",\n    \"next-themes\": \"^0.3.0\",\n    \"pino\": \"^8.14.1\",\n    \"pino-http\": \"^8.3.3\",\n    \"print-js\": \"^1.6.0\",\n    \"react\": \"18.2.0\",\n    \"react-dom\": \"18.2.0\",\n    \"react-dropzone\": \"^14.2.3\",\n    \"react-hook-form\": \"^7.43.9\",\n    \"react-pdf\": \"^6.2.2\",\n    \"react-resizable-panels\": \"^1.0.7\",\n    \"react-to-print\": \"^2.15.1\",\n    \"react-use-downloader\": \"^1.2.4\",\n    \"react-zoom-pan-pinch\": \"^3.3.0\",\n    \"recoil\": \"^0.7.7\",\n    \"recoil-sync\": \"^0.1.1\",\n    \"reflect-metadata\": \"^0.1.13\",\n    \"regenerator-runtime\": \"0.13.11\",\n    \"remeda\": \"^1.27.0\",\n    \"rxjs\": \"^7.8.1\",\n    \"sharp\": \"^0.32.0\",\n    \"sharp-bmp\": \"^0.1.5\",\n    \"sonner\": \"^1.4.3\",\n    \"superjson\": \"^1.12.3\",\n    \"tailwind-merge\": \"^2.2.0\",\n    \"tailwindcss-animate\": \"^1.0.7\",\n    \"tslib\": \"^2.5.0\",\n    \"urql\": \"^4.0.5\",\n    \"use-session-storage-state\": \"^18.1.1\",\n    \"valibot\": \"^0.30.0\",\n    \"velona\": \"^0.7.0\",\n    \"xss\": \"^1.0.14\",\n    \"zod\": \"^3.21.4\"\n  },\n  \"devDependencies\": {\n    \"@babel/core\": \"7.20.12\",\n    \"@babel/preset-react\": \"^7.18.6\",\n    \"@babel/preset-typescript\": \"7.18.6\",\n    \"@babel/runtime\": \"^7.21.5\",\n    \"@clerk/types\": \"4.0.0-beta.21\",\n    \"@emotion/babel-plugin\": \"11.11.0\",\n    \"@graphql-codegen/cli\": \"^5.0.0\",\n    \"@graphql-codegen/client-preset\": \"^4.1.0\",\n    \"@graphql-codegen/introspection\": \"^4.0.0\",\n    \"@graphql-codegen/typescript-react-apollo\": \"^4.1.0\",\n    \"@graphql-typed-document-node/core\": \"^3.2.0\",\n    \"@hookform/devtools\": \"^4.3.1\",\n    \"@nestjs/schematics\": \"10.0.3\",\n    \"@nestjs/testing\": \"10.0.5\",\n    \"@nx/cypress\": \"18.2.1\",\n    \"@nx/deno\": \"^17.0.0\",\n    \"@nx/esbuild\": \"18.2.1\",\n    \"@nx/eslint\": \"18.2.1\",\n    \"@nx/eslint-plugin\": \"18.2.1\",\n    \"@nx/jest\": \"18.2.1\",\n    \"@nx/js\": \"18.2.1\",\n    \"@nx/nest\": \"18.2.1\",\n    \"@nx/next\": \"18.2.1\",\n    \"@nx/node\": \"18.2.1\",\n    \"@nx/react\": \"18.2.1\",\n    \"@nx/storybook\": \"18.2.1\",\n    \"@nx/vite\": \"18.2.1\",\n    \"@nx/web\": \"18.2.1\",\n    \"@nx/webpack\": \"18.2.1\",\n    \"@nx/workspace\": \"18.2.1\",\n    \"@parcel/watcher\": \"^2.4.0\",\n    \"@pmmmwh/react-refresh-webpack-plugin\": \"^0.5.10\",\n    \"@storybook/addon-actions\": \"7.6.5\",\n    \"@storybook/addon-docs\": \"7.6.5\",\n    \"@storybook/addon-essentials\": \"7.6.5\",\n    \"@storybook/addon-mdx-gfm\": \"7.6.5\",\n    \"@storybook/client-api\": \"^7.0.12\",\n    \"@storybook/client-logger\": \"^7.0.12\",\n    \"@storybook/core-server\": \"7.6.5\",\n    \"@storybook/react\": \"7.6.5\",\n    \"@storybook/react-vite\": \"7.6.5\",\n    \"@svgr/webpack\": \"8.0.1\",\n    \"@swc-node/register\": \"~1.8.0\",\n    \"@swc/cli\": \"~0.1.62\",\n    \"@swc/core\": \"1.3.100\",\n    \"@swc/jest\": \"0.2.29\",\n    \"@testing-library/react\": \"14.0.0\",\n    \"@types/fluent-ffmpeg\": \"^2.1.21\",\n    \"@types/gm\": \"^1.25.1\",\n    \"@types/jest\": \"29.4.4\",\n    \"@types/node\": \"18.16.9\",\n    \"@types/react\": \"18.2.33\",\n    \"@types/react-dom\": \"18.2.14\",\n    \"@types/sharp\": \"^0.31.1\",\n    \"@types/uniqid\": \"^5.3.2\",\n    \"@typescript-eslint/eslint-plugin\": \"7.4.0\",\n    \"@typescript-eslint/parser\": \"7.4.0\",\n    \"@vitest/coverage-v8\": \"1.4.0\",\n    \"@vitest/ui\": \"1.4.0\",\n    \"apollo\": \"^2.34.0\",\n    \"autoprefixer\": \"^10.4.17\",\n    \"azure-functions-core-tools\": \"^4.0.5148\",\n    \"babel-jest\": \"29.4.3\",\n    \"babel-loader\": \"8.1.0\",\n    \"css-loader\": \"^6.7.3\",\n    \"cypress\": \"^13.6.6\",\n    \"esbuild\": \"0.19.9\",\n    \"eslint\": \"8.57.0\",\n    \"eslint-config-next\": \"14.0.4\",\n    \"eslint-config-prettier\": \"9.1.0\",\n    \"eslint-plugin-cypress\": \"2.15.1\",\n    \"eslint-plugin-import\": \"2.27.5\",\n    \"eslint-plugin-jsx-a11y\": \"6.7.1\",\n    \"eslint-plugin-react\": \"7.32.2\",\n    \"eslint-plugin-react-hooks\": \"4.6.0\",\n    \"eslint-plugin-simple-import-sort\": \"^8.0.0\",\n    \"eslint-plugin-storybook\": \"^0.6.12\",\n    \"eslint-plugin-tailwindcss\": \"^3.14.0\",\n    \"husky\": \"^8.0.3\",\n    \"jest\": \"29.4.3\",\n    \"jest-environment-jsdom\": \"29.4.3\",\n    \"jest-environment-node\": \"^29.4.1\",\n    \"lint-staged\": \"^13.2.2\",\n    \"nx\": \"18.2.1\",\n    \"orval\": \"^6.15.0\",\n    \"postcss\": \"^8.4.32\",\n    \"postcss-loader\": \"^7.3.0\",\n    \"prettier\": \"^2.8.8\",\n    \"prettier-plugin-tailwindcss\": \"^0.5.11\",\n    \"prisma\": \"^5.5.2\",\n    \"react-refresh\": \"^0.10.0\",\n    \"storybook\": \"^7.0.12\",\n    \"storybook-addon-next\": \"^1.8.0\",\n    \"storybook-addon-swc\": \"^1.2.0\",\n    \"style-loader\": \"^3.3.2\",\n    \"stylus\": \"0.59.0\",\n    \"stylus-loader\": \"^7.1.0\",\n    \"tailwindcss\": \"^3.4.0\",\n    \"ts-jest\": \"29.1.1\",\n    \"ts-node\": \"10.9.1\",\n    \"typescript\": \"5.4.3\",\n    \"url-loader\": \"^4.1.1\",\n    \"vite\": \"5.0.13\",\n    \"vitest\": \"1.4.0\",\n    \"webpack\": \"5.88.2\",\n    \"webpack-merge\": \"^5.8.0\"\n  },\n  \"volta\": {\n    \"node\": \"20.10.0\"\n  }\n}","file":"package.json"}
[TRACE 14:59:04.447] starbase::app  Running shutdown phase with 1 systems 
Error: plugin::call_func::failed

  × unexpected character 'D' while parsing major version number

Operating system?

MacOS

Architecture?

arm64

milesj commented 5 months ago

@nakanoasaservice I'm not sure what the fix here would be. The program is letting you know that parsing the version failed, since that field is being used wrong. If we masked the error, then the user wouldn't ever know about it.

IMO something like this would at least be better:

  "engines": {
    "node": "20.x",
    "_npm": "Don't use 'npm'!!! Please use 'pnpm'!!!",
    "_yarn": "Don't use 'yarn'!!! Please use 'pnpm'!!!"
  },
milesj commented 3 months ago

After thinking about this for a while, I think erroring is still the best course of action.