Runtime Panic in gno
when Built with -trimpath
build flag due to Amino Package Path Resolution
#1236
Labels
🐞 bug
Something isn't working
Milestone
Runtime Panic in
gno
when Built with-trimpath
build Flag due to Amino Package Path ResolutionDescription
Using the
-trimpath
build flag withgno
results in a runtime panic.Environment
Steps to Reproduce
Expected Behaviour
All
gno
commands should run as intended without any errors.Actual Behaviour
gno
encounters a panic.Logs
Possible Cause & Solution
The underlying issue appears to be a side effect of the
amino
package using the call stack to obtain an absolute path of the current directory. As this behavior is triggered implicitly without a direct call (siimply by importing the package) it might be challenging to fix.A code snippet showcasing the implicit behavior:
We cannot pass variables, except perhaps through environment variables like
GNOROOT
. However, it's undesirable fortm2
to be dependent on such a variable.The text was updated successfully, but these errors were encountered: