Closed b4nst closed 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.
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?
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.
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.
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"
No worries, glad you figured it out!
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 triedproto regen --bin --log trace
but did not see any error or suspicious message.Trace logs?
Operating system?
MacOS
Architecture?
arm64