You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I am attempting to use nvm in the CLI container. When using custom command with exec_target = cli option - it reports that nvm is not found. At the same time when fin exec ... - works as expected.
Are commands executed in a different context?
Steps to reproduce the issue:
Initialize a default Docksal project.
Create a custom command with exec target:
#!/usr/bin/env bash
#: exec_target = cli
# Abort if anything fails
set -e
nvm --version
Run the command, the following error is reported:
/var/www/.docksal/commands/custom-command: line 5: nvm: command not found
Run fin exec nvm --version - no error reported:
> fin exec nvm --version
0.39.5
Run the same command inside fin bash - it works as well:
> fin bash
docker@cli:/var/www$ nvm --version
0.39.5
docker@cli:/var/www$
Describe the results you received:
Received an error message - /var/www/.docksal/commands/custom-command: line 5: nvm: command not found
Description
I am attempting to use
nvm
in the CLI container. When using custom command withexec_target = cli
option - it reports thatnvm
is not found. At the same time whenfin exec ...
- works as expected.Are commands executed in a different context?
Steps to reproduce the issue:
Initialize a default Docksal project.
Create a custom command with exec target:
Run the command, the following error is reported:
Run
fin exec nvm --version
- no error reported:Run the same command inside
fin bash
- it works as well:Describe the results you received:
Received an error message -
/var/www/.docksal/commands/custom-command: line 5: nvm: command not found
Describe the results you expected:
Expected
nvm
to be working as normal.Output of
fin config
:fin config output
Output of
fin sysinfo
:fin sysinfo output
The text was updated successfully, but these errors were encountered: