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

Running make messes up the repository #46

Closed
w00kie opened this issue Dec 16, 2015 · 1 comment
Closed

Running make messes up the repository #46

w00kie opened this issue Dec 16, 2015 · 1 comment

Comments

@w00kie
Copy link

w00kie commented Dec 16, 2015

Running the make command basically rewrites the whole directory, even removing the .git folder. So I clone the repo, run make & make install and then if some update is released, I need to trash that folder and re-clone the repo instead of pulling the new code.

@hlandau
Copy link
Owner

hlandau commented Dec 16, 2015

I should probably add an update command, yes. You can just run:

GOPATH="$(pwd)" go get -u github.com/hlandau/acme/...

in the directory containing the Makefile (or git pull from src/github.com/hlandau/acme, but that won't update dependencies.)

This behaviour is intentional and due to how Go code management works. By cloning the repo, you're cloning the code, but the code needs to be at $GOPATH/src/github.com/hlandau/acme, so it moves the code into that location, using the current directory as GOPATH if no GOPATH is set.

If you prefer, you can setup a GOPATH and just use go get. This is the preferred option for users familiar with Go.

@hlandau hlandau closed this as completed Dec 16, 2015
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