toolbox
toolbox copied to clipboard
toolbox can't source path
Describe the bug
If a path is source from /home/linuxbrew in zsh. Toolbox failed to source it. Even though host system can.
Steps how to reproduce the behaviour
- Install
linuxbrewon Fedora Atomic. - By default
brewinstalled in/home/linuxbrewlocation. - add
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"in~/.zsh. source ~/.zshrc- Try to enter toolbox.
toolbox enter toolboxfails to source path and gives error
/home/username22/.zshrc:25: no such file or directory: /home/linuxbrew/.linuxbrew/bin/brew
Expected behaviour toolbox container should be able to source path
Actual behaviour toolbox can't source the path and throws a error.
Output of toolbox --version (v0.0.90+)
toolbox version 0.0.99.5
Toolbx package info (rpm -q toolbox)
toolbox-0.0.99.5-11.fc40.x86_64
Output of podman version
Client: Podman Engine
Version: 5.1.1
API Version: 5.1.1
Go Version: go1.22.3
Built: Tue Jun 4 06:00:00 2024
OS/Arch: linux/amd64
Podman package info (rpm -q podman)
podman-5.1.1-1.fc40.x86_64
Info about your OS Fedora Kinoite 40
@tazihad Have you figured out a work-around for this? I've ended up doing the following in my zshrc:
source /etc/os-release
if [ "$VARIANT_ID" = "toolbx" ]; then
if [ ! -L /home/linuxbrew ]; then
sudo ln -s /run/host/home/linuxbrew /home/linuxbrew
fi
fi
# Linux Brew System
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
Not ideal but it seems to work.
@rmb938 thanks. work around works. I stopped using zsh in toolbox. And didn't source brew in bash.