Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

installation script proposal #1623

Closed
jmazzitelli opened this issue Feb 3, 2018 · 2 comments
Closed

installation script proposal #1623

jmazzitelli opened this issue Feb 3, 2018 · 2 comments

Comments

@jmazzitelli
Copy link

Can I propose that an installation script be introduced that will download the latest release binary executable and install it in your GOPATH/bin directory?

I am attaching such a script. Not sure where to put it (which is why I didn't submit a PR), but this works for me. Was hoping you guys would take it (or make something like it) so I wouldn't have to maintain it myself :)

It works very simply. Make sure your GOPATH is set properly, and run the script (with no arguments). The script will put the latest release of dep in GOPATH/bin. Under the covers, the script uses 'uname' to figure out what artifact it needs and then uses the github API to determine where the latest release is for that artifact. It then downloads it directly to GOPATH/bin. You can run such a script in a Go project's Makefile as a way for a new developer to download dep quickly and easily or have Travis run the make target to download dep so Travis can then use dep to pull down vendor deps (assuming the vendor deps aren't already committed to git).

The single script is found in this zip file: get-go-dep.zip

@ibrasho
Copy link
Collaborator

ibrasho commented Feb 4, 2018

#1533 should resolve this.

@mvdan
Copy link
Member

mvdan commented Sep 4, 2020

Dep was officially deprecated earlier this year, and the proposal to archive this repository was accepted. As such, I'm closing outstanding issues before archiving the repository. For any further comments, please use the proposal thread on the Go issue tracker. Thanks!

@mvdan mvdan closed this as completed Sep 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants