Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed install #31

Open
CouldBeThis opened this issue Feb 25, 2022 · 1 comment
Open

failed install #31

CouldBeThis opened this issue Feb 25, 2022 · 1 comment

Comments

@CouldBeThis
Copy link

$ curl https://raw.githubusercontent.com/souvikinator/lsx/master/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     100  1980  100  1980    0     0   2379      0 --:--:-- --:--:-- --:--:--  2379
Downloading required scripts...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--       0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     100   528  100   528    0     0    932      0 --:--:-- --:--:-- --:--:--   932
can't load package: package github.com/souvikinator/lsx@latest: cannot find package "github.com/souvikinator/lsx@latest" in any of:
	/usr/lib/go-1.10/src/github.com/souvikinator/lsx@latest (from $GOROOT)
	/home/shared/applications/go/src/github.com/souvikinator/lsx@latest (from $GOPATH)
ERROR: Installation failed!

Maybe I found the problem but not sure. I see in install.sh:

ZSHRC="$HOME/.zshrc"
ZSH_DIR="$HOME/.oh-my-zsh"
ZSH_FUNC_DIR="$ZSH_DIR/functions"

I don't keep my .zshrc or .oh-my-zsh in those locations; I keep them in a subdirectory of ~. I tried downloading the install.sh, hardcoding the first 2 variable and running it but got the same result so maybe it's not the point of failure.

I see that the file ~/.config/lsx/lsx.sh is present but beyond that I can't follow what is supposed to be happening so not sure what's the problem.

By the way I am not sure if this is helpful but as to the zsh files, the way I changed it from default is by setting the $ZDOTDIR environment variable in .zshenv. (Info on SE) As far as I found (I didn't look too hard) it wasn't possible to actually charge the name of the .zshrc file, which I would have preferred because it's sort of stupid to have a hidden file in a hidden directory. If that were possible and someone had done it then the below wouldn't work.

At the top of the $ZDOTDIR/.zshrc file, the oh my zsh installer added:

export ZSH="$ZDOTDIR/.oh-my-zsh"

So as per the above if I was writing this I would probably use:

ZSHRC="$ZDOTDIR/.zshrc"
ZSH_DIR="$ZSH"

but you should definitely check that with someone who knows what of they speak.

@souvikinator
Copy link
Owner

Hey there, thanks for reporting.
Looks like GOPATH issue however I'm not sure.

What do the following command returns?
echo $GOPATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants