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

$HOME/go #20

Open
YodaEmbedding opened this issue Jun 22, 2020 · 1 comment
Open

$HOME/go #20

YodaEmbedding opened this issue Jun 22, 2020 · 1 comment

Comments

@YodaEmbedding
Copy link

YodaEmbedding commented Jun 22, 2020

Installing/updating via the AUR package seems to create the directory $HOME/go. Isn't there any way to avoid creating a new directory in $HOME?

@RasmusLindroth
Copy link
Owner

I don't know if you can avoid the creation of a directory completely. You can choose to have the location elsewhere, but a directory will be created nonetheless.

You'll have to set the environment variable GOPATH to where you would like to store it, like /home/rasmus/trash/go. Here are some instructions for common shells https://github.com/golang/go/wiki/SettingGOPATH.

I will take a look at other packages how they do it and see if there's a way to avoid the creation of unnecessary directories :)

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