moonrepo / proto

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

Proto not generating bin nor shims #411

Closed b4nst closed 8 months ago

b4nst commented 8 months ago

What version?

0.30.0

Which command?

proto use

What happened?

After running proto use all tools are available under ~/.proto/tools, however there's nothing under ~/.proto/shims nor ~/.proto/bin. I tried proto regen --bin --log trace but did not see any error or suspicious message.

Trace logs?

[DEBUG 2024-02-07 18:04:57.499] proto  Running proto v0.30.0  bin="proto" args=["regen", "--bin", "--log", "trace"] pid=64067
[TRACE 18:04:57.499] starbase::app  Running startup phase with 3 systems
[DEBUG 18:04:57.499] proto_core::proto:detect_proto_env  Creating proto environment, detecting store  store="~/.proto"
[TRACE 18:04:57.499] starbase::app  Running analyze phase with 3 systems
[TRACE 18:04:57.499] proto_core::proto_config:load_proto_configs  Traversing upwards and loading .prototools files
[DEBUG 18:04:57.499] proto_core::proto_config:load_proto_configs  Loading .prototools  file="/Users/banst/workspace/github.com/loft-orbital/timoni-hub/.prototools"
[TRACE 18:04:57.499] starbase_utils::fs:load_proto_configs  Reading file  file="/Users/banst/workspace/github.com/loft-orbital/timoni-hub/.prototools"
[TRACE 18:04:57.499] schematic::config::loader:load_proto_configs  Loading partial configuration  config="ProtoConfig"
[TRACE 18:04:57.499] schematic::config::loader:load_proto_configs  Creating layer from source  config="ProtoConfig" source="<code>"
[TRACE 18:04:57.499] schematic::config::loader:load_proto_configs  Merging partial layers into a final result  config="ProtoConfig"
[DEBUG 18:04:57.500] proto_core::proto_config:load_proto_configs  Loading .prototools  file="~/.proto/.prototools"
[TRACE 18:04:57.500] starbase_utils::fs:load_proto_configs  Opening file  file="~/.proto/.prototools"
[TRACE 18:04:57.500] starbase_utils::fs_lock:load_proto_configs  Locking file  file="~/.proto/.prototools"
[TRACE 18:04:57.500] starbase_utils::fs_lock:load_proto_configs  Unlocking file  file="~/.proto/.prototools"
[TRACE 18:04:57.500] schematic::config::loader:load_proto_configs  Loading partial configuration  config="ProtoConfig"
[TRACE 18:04:57.500] schematic::config::loader:load_proto_configs  Creating layer from source  config="ProtoConfig" source="<code>"
[TRACE 18:04:57.500] schematic::config::loader:load_proto_configs  Merging partial layers into a final result  config="ProtoConfig"
[DEBUG 18:04:57.500] proto_core::proto_config:load_proto_configs  Merging loaded configs
[DEBUG 18:04:57.500] proto_core::proto_config:load_proto_configs  Merged 2 configs
[TRACE 18:04:57.500] starbase::app  Running execute phase with 3 systems
[ INFO 18:04:57.500] proto::commands::regen:regen  Regenerating bins and shims...
[DEBUG 18:04:57.500] proto::commands::regen:regen  Removing old shims
[TRACE 18:04:57.500] starbase_utils::fs:regen  Removing directory  dir="~/.proto/shims"
[TRACE 18:04:57.500] proto_core::helpers:check_for_new_version:is_offline  Checking for an internet connection  timeout=750
[TRACE 18:04:57.500] proto_core::helpers  Resolving 1.1.1.1:53
[DEBUG 18:04:57.500] proto::commands::regen:regen  Removing old bins
[TRACE 18:04:57.500] starbase_utils::fs:regen  Reading directory  dir="~/.proto/bin"
[TRACE 18:04:57.500] starbase_utils::fs:regen  Removing symlink  file="~/.proto/bin/cue"
[TRACE 18:04:57.501] starbase_utils::fs:regen  Removing symlink  file="~/.proto/bin/moon"
[DEBUG 18:04:57.501] proto::commands::regen:regen  Loading tools
[DEBUG 18:04:57.501] proto_core::tool_loader:regen  Finding a configured plugin  tool="internal-schema"
[DEBUG 18:04:57.501] proto_core::tool_loader:regen  Using a built-in plugin  plugin="source:https://github.com/moonrepo/schema-plugin/releases/download/v0.9.0/schema_plugin.wasm"
[TRACE 18:04:57.501] warpgate::loader:regen  Creating plugin loader  cache_dir="~/.proto/plugins"
[TRACE 18:04:57.501] warpgate::loader:regen  Loading plugin internal-schema  id="internal-schema"
[TRACE 18:04:57.501] starbase_utils::fs:regen  Reading file metadata  file="~/.proto/plugins/internal-schema-f5b8cdc8eacaa308d9ba7ceb56f7c6235886f42b5681400ecd5e40bfeb278127.wasm"
[TRACE 18:04:57.501] warpgate::loader:regen  Plugin already downloaded and cached  id="internal-schema" path="~/.proto/plugins/internal-schema-f5b8cdc8eacaa308d9ba7ceb56f7c6235886f42b5681400ecd5e40bfeb278127.wasm"
[TRACE 18:04:57.501] warpgate::loader  Loading plugin yarn  id="yarn"
[TRACE 18:04:57.501] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/yarn-9585caebdd25ab77ee61ed403a574f02d433f9a7ad0ee7eebc83ce88370990e3.wasm"
[TRACE 18:04:57.501] warpgate::loader  Loading plugin cue  id="cue"
[TRACE 18:04:57.501] warpgate::loader  Plugin already downloaded and cached  id="yarn" path="~/.proto/plugins/yarn-9585caebdd25ab77ee61ed403a574f02d433f9a7ad0ee7eebc83ce88370990e3.wasm"
[TRACE 18:04:57.501] warpgate::loader  Loading plugin pnpm  id="pnpm"
[TRACE 18:04:57.501] warpgate::loader  Loading plugin moon  id="moon"
[TRACE 18:04:57.501] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/pnpm-9585caebdd25ab77ee61ed403a574f02d433f9a7ad0ee7eebc83ce88370990e3.wasm"
[TRACE 18:04:57.501] warpgate::loader  Loading plugin bun  id="bun"
[TRACE 18:04:57.501] warpgate::loader  Loading plugin go  id="go"
[TRACE 18:04:57.501] warpgate::loader  Plugin already downloaded and cached  id="pnpm" path="~/.proto/plugins/pnpm-9585caebdd25ab77ee61ed403a574f02d433f9a7ad0ee7eebc83ce88370990e3.wasm"
[TRACE 18:04:57.501] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/moon-e22f6b95e7775965b02874eabde6e38e680dccc50a570ac1f51214b8c81d6d73.toml"
[TRACE 18:04:57.501] warpgate::loader  Loading plugin deno  id="deno"
[TRACE 18:04:57.501] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/go-7ee70e9a3cf8e5e4e97d4b0fad5f9c6e8ea39e675fe5932d9dcda13d84d699ea.wasm"
[TRACE 18:04:57.501] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/bun-acca3888c9e2b7279cba1465bb3f115b31a4172f4892fbd50edf2deb1c0311e7.wasm"
[TRACE 18:04:57.501] warpgate::loader  Plugin already downloaded and cached  id="moon" path="~/.proto/plugins/moon-e22f6b95e7775965b02874eabde6e38e680dccc50a570ac1f51214b8c81d6d73.toml"
[TRACE 18:04:57.501] warpgate::loader  Using source file  id="cue" path="/Users/banst/workspace/github.com/loft-orbital/timoni-hub/tool/buildsystem/plugins/cue.toml"
[TRACE 18:04:57.501] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/deno-40bf262661ca073300fad84c7dcb11894d6f9cd299e6974e1930cf4cbf7cdca9.wasm"
[TRACE 18:04:57.501] warpgate::loader  Plugin already downloaded and cached  id="go" path="~/.proto/plugins/go-7ee70e9a3cf8e5e4e97d4b0fad5f9c6e8ea39e675fe5932d9dcda13d84d699ea.wasm"
[TRACE 18:04:57.501] warpgate::loader  Loading plugin node  id="node"
[TRACE 18:04:57.501] warpgate::loader  Plugin already downloaded and cached  id="bun" path="~/.proto/plugins/bun-acca3888c9e2b7279cba1465bb3f115b31a4172f4892fbd50edf2deb1c0311e7.wasm"
[DEBUG 18:04:57.501] proto_core::tool_loader  Loading WASM plugin  source="~/.proto/plugins/go-7ee70e9a3cf8e5e4e97d4b0fad5f9c6e8ea39e675fe5932d9dcda13d84d699ea.wasm"
[DEBUG 18:04:57.501] proto_core::tool_loader  Loading WASM plugin  source="~/.proto/plugins/yarn-9585caebdd25ab77ee61ed403a574f02d433f9a7ad0ee7eebc83ce88370990e3.wasm"
[DEBUG 18:04:57.501] proto_core::tool_loader  Loading WASM plugin  source="~/.proto/plugins/bun-acca3888c9e2b7279cba1465bb3f115b31a4172f4892fbd50edf2deb1c0311e7.wasm"
[DEBUG 18:04:57.501] proto_core::tool_loader  Loading TOML plugin  source="~/.proto/plugins/moon-e22f6b95e7775965b02874eabde6e38e680dccc50a570ac1f51214b8c81d6d73.toml"
[DEBUG 18:04:57.501] proto_core::tool_loader  Loading WASM plugin  source="~/.proto/plugins/pnpm-9585caebdd25ab77ee61ed403a574f02d433f9a7ad0ee7eebc83ce88370990e3.wasm"
[DEBUG 18:04:57.501] proto_core::tool_loader  Loading TOML plugin  source="/Users/banst/workspace/github.com/loft-orbital/timoni-hub/tool/buildsystem/plugins/cue.toml"
[TRACE 18:04:57.501] warpgate::plugin  Storing plugin identifier  id="yarn"
[TRACE 18:04:57.501] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/node-6c5bc902f5a9736060297c76365be1db6ae0e872ae851497947bd4440826f0ec.wasm"
[TRACE 18:04:57.501] warpgate::plugin  Storing plugin identifier  id="go"
[TRACE 18:04:57.501] warpgate::loader  Plugin already downloaded and cached  id="deno" path="~/.proto/plugins/deno-40bf262661ca073300fad84c7dcb11894d6f9cd299e6974e1930cf4cbf7cdca9.wasm"
[DEBUG 18:04:57.501] proto_core::tool_loader  Finding a configured plugin  tool="internal-schema"
[DEBUG 18:04:57.501] proto_core::tool_loader  Finding a configured plugin  tool="internal-schema"
[TRACE 18:04:57.501] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[TRACE 18:04:57.501] warpgate::loader  Loading plugin npm  id="npm"
[TRACE 18:04:57.501] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[DEBUG 18:04:57.501] proto_core::tool_loader  Loading WASM plugin  source="~/.proto/plugins/deno-40bf262661ca073300fad84c7dcb11894d6f9cd299e6974e1930cf4cbf7cdca9.wasm"
[TRACE 18:04:57.501] warpgate::loader  Plugin already downloaded and cached  id="node" path="~/.proto/plugins/node-6c5bc902f5a9736060297c76365be1db6ae0e872ae851497947bd4440826f0ec.wasm"
[DEBUG 18:04:57.501] proto_core::tool_loader  Using a built-in plugin  plugin="source:https://github.com/moonrepo/schema-plugin/releases/download/v0.9.0/schema_plugin.wasm"
[TRACE 18:04:57.501] warpgate::plugin  Storing plugin identifier  id="bun"
[DEBUG 18:04:57.501] proto_core::tool  Creating tool go and instantiating plugin
[DEBUG 18:04:57.501] proto_core::tool_loader  Using a built-in plugin  plugin="source:https://github.com/moonrepo/schema-plugin/releases/download/v0.9.0/schema_plugin.wasm"
[DEBUG 18:04:57.502] proto_core::tool_loader  Loading WASM plugin  source="~/.proto/plugins/node-6c5bc902f5a9736060297c76365be1db6ae0e872ae851497947bd4440826f0ec.wasm"
[TRACE 18:04:57.502] warpgate::plugin  Storing plugin identifier  id="deno"
[TRACE 18:04:57.502] warpgate::loader  Loading plugin internal-schema  id="internal-schema"
[TRACE 18:04:57.502] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[TRACE 18:04:57.502] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/npm-9585caebdd25ab77ee61ed403a574f02d433f9a7ad0ee7eebc83ce88370990e3.wasm"
[TRACE 18:04:57.501] warpgate::plugin  Storing plugin identifier  id="pnpm"
[DEBUG 18:04:57.502] proto_core::tool  Creating tool yarn and instantiating plugin
[TRACE 18:04:57.502] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[TRACE 18:04:57.502] warpgate::plugin  Storing plugin identifier  id="node"
[TRACE 18:04:57.502] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/internal-schema-f5b8cdc8eacaa308d9ba7ceb56f7c6235886f42b5681400ecd5e40bfeb278127.wasm"
[TRACE 18:04:57.502] warpgate::loader  Loading plugin internal-schema  id="internal-schema"
[TRACE 18:04:57.502] warpgate::loader  Plugin already downloaded and cached  id="npm" path="~/.proto/plugins/npm-9585caebdd25ab77ee61ed403a574f02d433f9a7ad0ee7eebc83ce88370990e3.wasm"
[DEBUG 18:04:57.502] proto_core::tool_loader  Loading WASM plugin  source="~/.proto/plugins/npm-9585caebdd25ab77ee61ed403a574f02d433f9a7ad0ee7eebc83ce88370990e3.wasm"
[TRACE 18:04:57.502] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/internal-schema-f5b8cdc8eacaa308d9ba7ceb56f7c6235886f42b5681400ecd5e40bfeb278127.wasm"
[TRACE 18:04:57.502] warpgate::loader  Plugin already downloaded and cached  id="internal-schema" path="~/.proto/plugins/internal-schema-f5b8cdc8eacaa308d9ba7ceb56f7c6235886f42b5681400ecd5e40bfeb278127.wasm"
[DEBUG 18:04:57.502] proto_core::tool  Creating tool bun and instantiating plugin
[TRACE 18:04:57.502] starbase_utils::fs  Reading file  file="/Users/banst/workspace/github.com/loft-orbital/timoni-hub/tool/buildsystem/plugins/cue.toml"
[TRACE 18:04:57.502] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[TRACE 18:04:57.502] warpgate::loader  Plugin already downloaded and cached  id="internal-schema" path="~/.proto/plugins/internal-schema-f5b8cdc8eacaa308d9ba7ceb56f7c6235886f42b5681400ecd5e40bfeb278127.wasm"
[DEBUG 18:04:57.502] proto_core::tool  Creating tool node and instantiating plugin
[TRACE 18:04:57.502] starbase_utils::fs  Reading file  file="~/.proto/plugins/moon-e22f6b95e7775965b02874eabde6e38e680dccc50a570ac1f51214b8c81d6d73.toml"
[TRACE 18:04:57.502] warpgate::plugin  Storing plugin identifier  id="npm"
[DEBUG 18:04:57.502] proto_core::tool  Creating tool deno and instantiating plugin
[TRACE 18:04:57.502] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[TRACE 18:04:57.502] starbase_utils::toml  Parsing TOML  file="~/.proto/plugins/moon-e22f6b95e7775965b02874eabde6e38e680dccc50a570ac1f51214b8c81d6d73.toml"
[TRACE 18:04:57.502] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[TRACE 18:04:57.502] starbase_utils::toml  Parsing TOML  file="/Users/banst/workspace/github.com/loft-orbital/timoni-hub/tool/buildsystem/plugins/cue.toml"
[DEBUG 18:04:57.502] proto_core::tool  Creating tool npm and instantiating plugin
[TRACE 18:04:57.502] proto_core::tool_loader  Storing schema settings  schema={"install":{"download-url":"https://github.com/moonrepo/moon/releases/download/v{version}/{download_file}"},"metadata":{"self-upgrade-commands":["upgrade"]},"name":"moon","platform":{"linux":{"download-file":"moon-{arch}-unknown-linux-{libc}"},"macos":{"download-file":"moon-{arch}-apple-darwin"},"windows":{"download-file":"moon-{arch}-pc-windows-msvc.exe"}},"resolve":{"git-url":"https://github.com/moonrepo/moon"},"type":"cli"}
[TRACE 18:04:57.502] proto_core::tool_loader  Storing schema settings  schema={"install":{"arch":{"aarch64":"arm64","x86_64":"amd64"},"checksum-url":"https://github.com/cue-lang/cue/releases/download/v{version}/checksums.txt","download-url":"https://github.com/cue-lang/cue/releases/download/v{version}/{download_file}"},"name":"cue","platform":{"linux":{"bin-path":"cue","download-file":"cue_v{version}_linux_{arch}.tar.gz"},"macos":{"bin-path":"cue","download-file":"cue_v{version}_darwin_{arch}.tar.gz"},"windows":{"bin-path":"cue.exe","download-file":"cue_v{version}_windows_{arch}.zip"}},"resolve":{"git-url":"https://github.com/cue-lang/cue"},"type":"cli"}
[DEBUG 18:04:57.502] proto_core::tool  Creating tool pnpm and instantiating plugin
[TRACE 18:04:57.502] warpgate::plugin  Storing plugin identifier  id="cue"
[TRACE 18:04:57.502] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[TRACE 18:04:57.502] warpgate::plugin  Storing plugin identifier  id="moon"
[DEBUG 18:04:57.502] proto_core::tool  Creating tool cue and instantiating plugin
[TRACE 18:04:57.502] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[DEBUG 18:04:57.502] proto_core::tool  Creating tool moon and instantiating plugin
[TRACE 18:04:57.511] proto_core::helpers:check_for_new_version:is_offline  Online!
[TRACE 18:04:57.511] starbase_utils::fs:check_for_new_version  Reading file  file="~/.proto/temp/.last-version-check"
[TRACE 18:04:57.511] warpgate::loader  Loading plugin python  id="python"
[TRACE 18:04:57.511] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/python-b8d2b5410c8dcf573822b8c50b6c4f8386b8e7947486702af3f83010bb991c7a.wasm"
[TRACE 18:04:57.511] warpgate::loader  Plugin already downloaded and cached  id="python" path="~/.proto/plugins/python-b8d2b5410c8dcf573822b8c50b6c4f8386b8e7947486702af3f83010bb991c7a.wasm"
[DEBUG 18:04:57.511] proto_core::tool_loader  Loading WASM plugin  source="~/.proto/plugins/python-b8d2b5410c8dcf573822b8c50b6c4f8386b8e7947486702af3f83010bb991c7a.wasm"
[TRACE 18:04:57.511] warpgate::plugin  Storing plugin identifier  id="python"
[TRACE 18:04:57.511] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[DEBUG 18:04:57.511] proto_core::tool  Creating tool python and instantiating plugin
[TRACE 18:04:57.516] warpgate::plugin  Created plugin container  id="deno" plugin=03174797-9d99-423b-83d7-b6fb1787290a
[DEBUG 18:04:57.516] proto_core::tool  Created tool deno and its WASM runtime
[TRACE 18:04:57.516] warpgate::plugin  Created plugin container  id="cue" plugin=60e22635-ddae-4ee3-81c1-7a37b19c86d4
[DEBUG 18:04:57.517] proto_core::tool  Created tool cue and its WASM runtime
[DEBUG 18:04:57.516] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/deno/manifest.json"
[DEBUG 18:04:57.517] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/cue/manifest.json"
[TRACE 18:04:57.517] starbase_utils::fs  Opening file  file="~/.proto/tools/cue/manifest.json"
[TRACE 18:04:57.517] starbase_utils::fs_lock  Locking file  file="~/.proto/tools/cue/manifest.json"
[TRACE 18:04:57.517] warpgate::plugin  Calling plugin function register_tool  id="deno" plugin=03174797-9d99-423b-83d7-b6fb1787290a input={"id":"deno"}
[TRACE 18:04:57.517] starbase_utils::fs_lock  Unlocking file  file="~/.proto/tools/cue/manifest.json"
[TRACE 18:04:57.517] warpgate::plugin  Called plugin function register_tool  id="deno" plugin=03174797-9d99-423b-83d7-b6fb1787290a output={"inventory":{},"name":"Deno","plugin_version":"0.9.0","self_upgrade_commands":["upgrade"],"type":"Language"}
[TRACE 18:04:57.517] warpgate::loader  Loading plugin rust  id="rust"
[TRACE 18:04:57.517] starbase_utils::fs  Reading file metadata  file="~/.proto/plugins/rust-8beb56eecd3b386fa4612419edd95070223f5853f6342c536bb082e7b6a7b926.wasm"
[TRACE 18:04:57.517] warpgate::plugin  Calling plugin function register_tool  id="cue" plugin=60e22635-ddae-4ee3-81c1-7a37b19c86d4 input={"id":"cue"}
[TRACE 18:04:57.517] warpgate::loader  Plugin already downloaded and cached  id="rust" path="~/.proto/plugins/rust-8beb56eecd3b386fa4612419edd95070223f5853f6342c536bb082e7b6a7b926.wasm"
[DEBUG 18:04:57.517] proto_core::tool_loader  Loading WASM plugin  source="~/.proto/plugins/rust-8beb56eecd3b386fa4612419edd95070223f5853f6342c536bb082e7b6a7b926.wasm"
[TRACE 18:04:57.517] warpgate::plugin  Storing plugin identifier  id="rust"
[TRACE 18:04:57.517] warpgate::plugin  Storing host environment  env={"arch":"arm64","os":"macos","home_dir":{"path":"/userhome/","virtual_prefix":"/userhome","real_prefix":"/Users/banst"}}
[DEBUG 18:04:57.517] proto_core::tool  Creating tool rust and instantiating plugin
[TRACE 18:04:57.517] warpgate::plugin  Created plugin container  id="yarn" plugin=6879c297-f7bf-4385-abb5-4e9295331b54
[DEBUG 18:04:57.517] proto_core::tool  Created tool yarn and its WASM runtime
[DEBUG 18:04:57.517] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/yarn/manifest.json"
[TRACE 18:04:57.518] warpgate::plugin  Calling plugin function register_tool  id="yarn" plugin=6879c297-f7bf-4385-abb5-4e9295331b54 input={"id":"yarn"}
[TRACE 18:04:57.518] warpgate::plugin  Called plugin function register_tool  id="cue" plugin=60e22635-ddae-4ee3-81c1-7a37b19c86d4 output={"inventory":{},"name":"cue","plugin_version":"0.9.0","type":"CLI"}
[TRACE 18:04:57.518] warpgate::plugin  Called plugin function register_tool  id="yarn" plugin=6879c297-f7bf-4385-abb5-4e9295331b54 output={"inventory":{},"name":"yarn","plugin_version":"0.9.1","type":"DependencyManager"}
[TRACE 18:04:57.518] warpgate::plugin  Created plugin container  id="node" plugin=7187251d-8055-425b-9738-fa9e573180fe
[DEBUG 18:04:57.518] proto_core::tool  Created tool node and its WASM runtime
[DEBUG 18:04:57.518] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/node/manifest.json"
[TRACE 18:04:57.518] warpgate::plugin  Calling plugin function register_tool  id="node" plugin=7187251d-8055-425b-9738-fa9e573180fe input={"id":"node"}
[TRACE 18:04:57.519] warpgate::plugin  Called plugin function register_tool  id="node" plugin=7187251d-8055-425b-9738-fa9e573180fe output={"inventory":{},"name":"Node.js","plugin_version":"0.9.1","type":"Language"}
[TRACE 18:04:57.521] warpgate::plugin  Created plugin container  id="npm" plugin=a7c3548b-f70c-4650-ab12-5fb6159096ca
[DEBUG 18:04:57.521] proto_core::tool  Created tool npm and its WASM runtime
[DEBUG 18:04:57.521] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/npm/manifest.json"
[TRACE 18:04:57.521] warpgate::plugin  Calling plugin function register_tool  id="npm" plugin=a7c3548b-f70c-4650-ab12-5fb6159096ca input={"id":"npm"}
[TRACE 18:04:57.521] warpgate::plugin  Created plugin container  id="go" plugin=5e693c0d-b618-4d36-b4d2-db55740d1e2d
[DEBUG 18:04:57.521] proto_core::tool  Created tool go and its WASM runtime
[DEBUG 18:04:57.521] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/go/manifest.json"
[TRACE 18:04:57.521] warpgate::plugin  Called plugin function register_tool  id="npm" plugin=a7c3548b-f70c-4650-ab12-5fb6159096ca output={"default_version":"bundled","inventory":{},"name":"npm","plugin_version":"0.9.1","type":"DependencyManager"}
[TRACE 18:04:57.521] warpgate::plugin  Created plugin container  id="bun" plugin=29381cba-391f-4ba7-b68b-613c92ac9b5e
[TRACE 18:04:57.521] warpgate::plugin  Calling plugin function register_tool  id="go" plugin=5e693c0d-b618-4d36-b4d2-db55740d1e2d input={"id":"go"}
[DEBUG 18:04:57.521] proto_core::tool  Created tool bun and its WASM runtime
[DEBUG 18:04:57.521] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/bun/manifest.json"
[TRACE 18:04:57.521] warpgate::plugin  Calling plugin function register_tool  id="bun" plugin=29381cba-391f-4ba7-b68b-613c92ac9b5e input={"id":"bun"}
[TRACE 18:04:57.521] warpgate::plugin  Called plugin function register_tool  id="go" plugin=5e693c0d-b618-4d36-b4d2-db55740d1e2d output={"inventory":{},"name":"Go","plugin_version":"0.9.0","type":"Language"}
[TRACE 18:04:57.522] warpgate::plugin  Called plugin function register_tool  id="bun" plugin=29381cba-391f-4ba7-b68b-613c92ac9b5e output={"inventory":{},"name":"Bun","plugin_version":"0.9.0","self_upgrade_commands":["upgrade"],"type":"Language"}
[TRACE 18:04:57.522] warpgate::plugin  Created plugin container  id="pnpm" plugin=cf8c9cfd-c95a-4e1a-a465-288c78f35e26
[DEBUG 18:04:57.522] proto_core::tool  Created tool pnpm and its WASM runtime
[DEBUG 18:04:57.522] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/pnpm/manifest.json"
[TRACE 18:04:57.522] warpgate::plugin  Calling plugin function register_tool  id="pnpm" plugin=cf8c9cfd-c95a-4e1a-a465-288c78f35e26 input={"id":"pnpm"}
[TRACE 18:04:57.522] warpgate::plugin  Called plugin function register_tool  id="pnpm" plugin=cf8c9cfd-c95a-4e1a-a465-288c78f35e26 output={"inventory":{},"name":"pnpm","plugin_version":"0.9.1","type":"DependencyManager"}
[TRACE 18:04:57.522] warpgate::plugin  Created plugin container  id="moon" plugin=99839871-85f5-4c8b-b99c-9cd5a89acdcb
[DEBUG 18:04:57.522] proto_core::tool  Created tool moon and its WASM runtime
[DEBUG 18:04:57.522] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/moon/manifest.json"
[TRACE 18:04:57.522] starbase_utils::fs  Opening file  file="~/.proto/tools/moon/manifest.json"
[TRACE 18:04:57.522] starbase_utils::fs_lock  Locking file  file="~/.proto/tools/moon/manifest.json"
[TRACE 18:04:57.522] starbase_utils::fs_lock  Unlocking file  file="~/.proto/tools/moon/manifest.json"
[TRACE 18:04:57.522] warpgate::plugin  Calling plugin function register_tool  id="moon" plugin=99839871-85f5-4c8b-b99c-9cd5a89acdcb input={"id":"moon"}
[TRACE 18:04:57.522] warpgate::plugin  Called plugin function register_tool  id="moon" plugin=99839871-85f5-4c8b-b99c-9cd5a89acdcb output={"inventory":{},"name":"moon","plugin_version":"0.9.0","self_upgrade_commands":["upgrade"],"type":"CLI"}
[TRACE 18:04:57.524] warpgate::plugin  Created plugin container  id="python" plugin=bfd02183-d482-4035-ba5c-63659914a9fe
[DEBUG 18:04:57.524] proto_core::tool  Created tool python and its WASM runtime
[DEBUG 18:04:57.524] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/python/manifest.json"
[TRACE 18:04:57.524] warpgate::plugin  Calling plugin function register_tool  id="python" plugin=bfd02183-d482-4035-ba5c-63659914a9fe input={"id":"python"}
[TRACE 18:04:57.524] warpgate::plugin  Called plugin function register_tool  id="python" plugin=bfd02183-d482-4035-ba5c-63659914a9fe output={"inventory":{},"name":"Python","plugin_version":"0.7.0","type":"Language"}
[TRACE 18:04:57.527] warpgate::plugin  Created plugin container  id="rust" plugin=8475f19e-0b11-4b1f-a94f-4a53bc6b3c8e
[DEBUG 18:04:57.527] proto_core::tool  Created tool rust and its WASM runtime
[DEBUG 18:04:57.527] proto_core::tool_manifest  Loading manifest.json  file="~/.proto/tools/rust/manifest.json"
[TRACE 18:04:57.527] warpgate::plugin  Calling plugin function register_tool  id="rust" plugin=8475f19e-0b11-4b1f-a94f-4a53bc6b3c8e input={"id":"rust"}
[TRACE 18:04:57.527] warpgate::host_funcs  Read environment variable from host  name="RUSTUP_HOME" value=""
[TRACE 18:04:57.527] warpgate::host_funcs  Converted a path into a virtual path  original_path="/Users/banst/.rustup/toolchains" virtual_path="/userhome/.rustup/toolchains"
[TRACE 18:04:57.527] warpgate::plugin  Called plugin function register_tool  id="rust" plugin=8475f19e-0b11-4b1f-a94f-4a53bc6b3c8e output={"default_version":"stable","inventory":{"disable_progress_bars":true,"override_dir":{"path":"/userhome/.rustup/toolchains","virtual_prefix":"/userhome","real_prefix":"/Users/banst"},"version_suffix":"-aarch64-apple-darwin"},"name":"Rust","plugin_version":"0.8.0","type":"Language"}
[DEBUG 18:04:57.544] proto::commands::regen:regen  Regenerating cue shim
[DEBUG 18:04:57.544] proto_core::tool:regen  Resolving a semantic version or alias  tool="cue" initial_version="0.7.0"
[DEBUG 18:04:57.544] proto_core::tool:regen  Resolved to 0.7.0 (without validation)  tool="cue" version="0.7.0"
[TRACE 18:04:57.544] warpgate::plugin:regen  Calling plugin function locate_executables  id="cue" plugin=60e22635-ddae-4ee3-81c1-7a37b19c86d4 input={"context":{"proto_version":"0.30.0","tool_dir":{"path":"/proto/tools/cue/0.7.0","virtual_prefix":"/proto","real_prefix":"~/.proto"},"version":"0.7.0"}}
[TRACE 18:04:57.544] warpgate::plugin:regen  Called plugin function locate_executables  id="cue" plugin=60e22635-ddae-4ee3-81c1-7a37b19c86d4 output={"primary":{"exe_path":"cue"}}
[DEBUG 18:04:57.544] proto_core::tool:regen  Creating shims as they either do not exist, or are outdated  tool="cue" shims_dir="~/.proto/shims" shim_version=13
[DEBUG 18:04:57.544] proto_core::tool_manifest:regen  Saving manifest  file="~/.proto/tools/cue/manifest.json"
[TRACE 18:04:57.544] starbase_utils::fs:regen  Creating file without truncating  file="~/.proto/tools/cue/manifest.json"
[TRACE 18:04:57.544] starbase_utils::fs_lock:regen  Locking file exclusively  file="~/.proto/tools/cue/manifest.json"
[TRACE 18:04:57.544] starbase_utils::fs_lock:regen  Writing file  file="~/.proto/tools/cue/manifest.json"
[TRACE 18:04:57.544] starbase_utils::fs_lock:regen  Unlocking file exclusively  file="~/.proto/tools/cue/manifest.json"
[TRACE 18:04:57.544] starbase_utils::fs:regen  Reading bytes of file  file="/Users/banst/.proto/bin/proto-shim"
[TRACE 18:04:57.544] starbase_utils::fs:regen  Creating directory  dir="~/.proto/shims"
[DEBUG 18:04:57.545] proto_core::tool:regen  Creating shim  tool="cue" shim="~/.proto/shims/cue" shim_version=13
[TRACE 18:04:57.545] starbase_utils::fs:regen  Creating file without truncating  file="~/.proto/shims/registry.json"
[TRACE 18:04:57.545] starbase_utils::fs_lock:regen  Locking file exclusively  file="~/.proto/shims/registry.json"
[TRACE 18:04:57.545] starbase_utils::fs_lock:regen  Writing file  file="~/.proto/shims/registry.json"
[TRACE 18:04:57.545] starbase_utils::fs_lock:regen  Unlocking file exclusively  file="~/.proto/shims/registry.json"
[DEBUG 18:04:57.545] proto::commands::regen:regen  Relinking cue bin
[DEBUG 18:04:57.545] proto_core::tool:regen  Resolving a semantic version or alias  tool="cue" initial_version="0.7.0"
[DEBUG 18:04:57.545] proto_core::tool:regen  Resolved to 0.7.0 (without validation)  tool="cue" version="0.7.0"
[DEBUG 18:04:57.545] proto_core::tool:regen  Creating symlinks to the original tool executables  tool="cue" bins_dir="~/.proto/bin"
[DEBUG 18:04:57.545] proto_core::tool:regen  Creating binary symlink  tool="cue" source="~/.proto/tools/cue/0.7.0/cue" target="~/.proto/bin/cue"
[DEBUG 18:04:57.598] proto::commands::regen:regen  Regenerating moon shim
[DEBUG 18:04:57.598] proto_core::tool:regen  Resolving a semantic version or alias  tool="moon" initial_version="1.3.0"
[DEBUG 18:04:57.598] proto_core::tool:regen  Resolved to 1.3.0 (without validation)  tool="moon" version="1.3.0"
[TRACE 18:04:57.598] warpgate::plugin:regen  Calling plugin function locate_executables  id="moon" plugin=99839871-85f5-4c8b-b99c-9cd5a89acdcb input={"context":{"proto_version":"0.30.0","tool_dir":{"path":"/proto/tools/moon/1.3.0","virtual_prefix":"/proto","real_prefix":"~/.proto"},"version":"1.3.0"}}
[TRACE 18:04:57.598] warpgate::plugin:regen  Called plugin function locate_executables  id="moon" plugin=99839871-85f5-4c8b-b99c-9cd5a89acdcb output={"primary":{"exe_path":"moon"}}
[DEBUG 18:04:57.598] proto_core::tool:regen  Creating shims as they either do not exist, or are outdated  tool="moon" shims_dir="~/.proto/shims" shim_version=13
[DEBUG 18:04:57.598] proto_core::tool_manifest:regen  Saving manifest  file="~/.proto/tools/moon/manifest.json"
[TRACE 18:04:57.598] starbase_utils::fs:regen  Creating file without truncating  file="~/.proto/tools/moon/manifest.json"
[TRACE 18:04:57.598] starbase_utils::fs_lock:regen  Locking file exclusively  file="~/.proto/tools/moon/manifest.json"
[TRACE 18:04:57.598] starbase_utils::fs_lock:regen  Writing file  file="~/.proto/tools/moon/manifest.json"
[TRACE 18:04:57.598] starbase_utils::fs_lock:regen  Unlocking file exclusively  file="~/.proto/tools/moon/manifest.json"
[TRACE 18:04:57.598] starbase_utils::fs:regen  Reading bytes of file  file="/Users/banst/.proto/bin/proto-shim"
[DEBUG 18:04:57.598] proto_core::tool:regen  Creating shim  tool="moon" shim="~/.proto/shims/moon" shim_version=13
[TRACE 18:04:57.598] starbase_utils::fs:regen  Opening file  file="~/.proto/shims/registry.json"
[TRACE 18:04:57.598] starbase_utils::fs_lock:regen  Locking file  file="~/.proto/shims/registry.json"
[TRACE 18:04:57.598] starbase_utils::fs_lock:regen  Unlocking file  file="~/.proto/shims/registry.json"
[TRACE 18:04:57.598] starbase_utils::fs:regen  Creating file without truncating  file="~/.proto/shims/registry.json"
[TRACE 18:04:57.598] starbase_utils::fs_lock:regen  Locking file exclusively  file="~/.proto/shims/registry.json"
[TRACE 18:04:57.598] starbase_utils::fs_lock:regen  Writing file  file="~/.proto/shims/registry.json"
[TRACE 18:04:57.598] starbase_utils::fs_lock:regen  Unlocking file exclusively  file="~/.proto/shims/registry.json"
[DEBUG 18:04:57.599] proto::commands::regen:regen  Relinking moon bin
[DEBUG 18:04:57.599] proto_core::tool:regen  Resolving a semantic version or alias  tool="moon" initial_version="1.3.0"
[DEBUG 18:04:57.599] proto_core::tool:regen  Resolved to 1.3.0 (without validation)  tool="moon" version="1.3.0"
[DEBUG 18:04:57.599] proto_core::tool:regen  Creating symlinks to the original tool executables  tool="moon" bins_dir="~/.proto/bin"
[DEBUG 18:04:57.599] proto_core::tool:regen  Creating binary symlink  tool="moon" source="~/.proto/tools/moon/1.3.0/moon" target="~/.proto/bin/moon"
[ INFO 18:04:57.650] proto::commands::regen:regen  Regeneration complete!
[TRACE 18:04:57.650] starbase::app  Running shutdown phase with 1 systems

Operating system?

MacOS

Architecture?

arm64

milesj commented 8 months ago

This is a bit weird. According to the logs, there was something.

[TRACE 18:04:57.500] starbase_utils::fs:regen  Removing symlink  file="~/.proto/bin/cue"
[TRACE 18:04:57.501] starbase_utils::fs:regen  Removing symlink  file="~/.proto/bin/moon"

And then they are creating the file:

[DEBUG 18:04:57.598] proto_core::tool:regen  Creating shim  tool="moon" shim="~/.proto/shims/moon" shim_version=13

Honestly, I'm a bit lost here, as I would expect some kind of error, like a permission error or something.

Dumb question, but can you somehow verify that nothing in your shell, or something similar, is deleting those dirs on accident? You can maybe uncover something by putting PROTO_LOG=trace in your shell and see what happens.

b4nst commented 8 months ago

So there's definitely something happening with my shell, thanks for the heads up. I tried to switch to fish, and I can see the shims now. I'm using nushell, I'll push investigation to understand the root cause. Anything proto is expecting from the shell during this operation that comes to mind?

milesj commented 8 months ago

Hrmm interesting. I'm surprised that a shell would cause this. Is it intercepting sys calls somehow? These are simple fs calls.

I looked through the docs/issues a bit, but didn't notice anything.

b4nst commented 8 months ago

Okay found something interesting. The .proto dir is actually here and populated, but in the local folder (there's a ./~/.proto directory. It probably comes from env var that I miss configured. I'll identify which one and close the issue when finding the root cause.

b4nst commented 8 months ago

Ok found it, this is what was messing with my env. It seems it was treated as relative path from proto. Removing it all together solves the issue. Sorry for the confusing troubleshoot.

# Proto setup
$env.PROTO_INSTALL_DIR = "~/bin"
$env.PROTO_HOME = "~/.proto"
milesj commented 8 months ago

No worries, glad you figured it out!