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

Need more instructions for inital setup for those less familiar with Go #3

Open
JethroCooper opened this issue Jan 11, 2018 · 1 comment

Comments

@JethroCooper
Copy link

First of all, thank you very much for providing this. It works like a dream. However, I stumbled a bit on setting up my initial environment given that I had never worked with Go before. At the very least, a link to Go installation instructions and the command to get all dependencies for a Go project would be helpful. Below is the verbose set of commands that worked for me.

wget https://dl.google.com/go/go1.9.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xvf go1.9.2.linux-amd64.tar.gz
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin

# Set path for go
mkdir $HOME/go
export GOPATH="$HOME/go"
cd $HOME/go

# Git clone s3-sync
git clone https://github.com/checkr/s3-sync.git
cd s3-sync/

# Get all dependencies
go get ./...

# Now edit $HOME/go/s3-sync/config.prod.yaml, ex
cp $HOME/go/s3-sync/config.yaml $HOME/go/s3-sync/config.prod.yaml
vim $HOME/go/s3-sync/config.prod.yaml

# Now you can run the program
go run main.go sync --config config.prod.yaml
@geekofalltrades
Copy link

Alternatively, it could also be helpful to provide some binary releases, so that users don't have to build the application themselves.

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

No branches or pull requests

2 participants