-
Notifications
You must be signed in to change notification settings - Fork 25
/
index.html
177 lines (170 loc) · 7.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Glide | Package Management For Go</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/assets/css/styles.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-73946119-1', 'auto');
ga('send', 'pageview');
</script>
<script type="text/javascript">
function selectCode(cid) {
if (document.selection) {
var range = document.body.createTextRange();
range.moveToElementText(document.getElementById(cid));
range.select();
} else if (window.getSelection) {
var range = document.createRange();
range.selectNode(document.getElementById(cid));
window.getSelection().addRange(range);
}
}
</script>
</head>
<body>
<header class="wrapper">
<h1><a href="/" title="Glide">Glide</a></h1>
<nav>
<ul>
<li>
<a href="https://github.com/Masterminds/glide/releases">v0.13.3</a>
</li>
<li>
<a href="https://glide.readthedocs.org">Documentation</a>
</li>
<li>
<a href="https://github.com/Masterminds/glide">GitHub</a>
</li>
</ul>
</nav>
</header>
<div class="headline wrapper">
<img src="/assets/logo-small.png"><br>
<h2>Package Management for Go</h2>
<p>Semantic Versions and Ranges • Git, Bzr, Hg, Svn • Works with Go toolchain<br>
Leverages vendor directory • Imports from Godep, GB, GPM, Gom • Private Repos and Forks</p>
</div>
<div id="content">
<div class="wrapper">
<div class="row">
<div class="description">
<h2>Get Glide</h2>
<p>
Get the latest release of Glide. The script puts it with your Go binaries (<code>$GOPATH/bin</code> or <code>$GOBIN</code>).
</p>
</div>
<div class="detail">
<pre><code>
<span id="curl-get" onclick="selectCode('curl-get')">curl https://glide.sh/get | sh</span>
</code></pre>
<div class="button-wrapper">
or <a href="https://github.com/Masterminds/glide/releases" class="button">Download</a>
</div>
</div>
</div>
<div class="row">
<div class="description">
<h2>Initialization</h2>
<p>
Scan a codebase and create a <a href="https://glide.readthedocs.org/en/latest/glide.yaml/"><code>glide.yaml</code></a> file containing the dependencies.
</p>
</div>
<div class="detail">
<pre><code>
$ glide init
</code></pre>
</div>
</div>
<div class="row">
<div class="description">
<h2>Additional Configuration</h2>
<p>
Optionally, edit the <a href="https://glide.readthedocs.org/en/latest/glide.yaml/"><code>glide.yaml</code></a>
file to add <a href="https://glide.readthedocs.org/en/latest/versions/">versions</a> and other information.
</p>
</div>
<div class="detail">
<pre><code>
$ edit glide.yaml
</code></pre>
</div>
</div>
<div class="row">
<div class="description">
<h2>Resolve The Dependency Tree</h2>
<p>
Install the latest dependencies into the <a href="https://glide.readthedocs.org/en/latest/vendor/"><code>vendor</code></a>
directory matching the version resolution information.
The complete dependency tree is installed, importing Glide,
Godep, GB, and GPM configuration along the way. A
<a href="https://glide.readthedocs.org/en/latest/glide.lock/">lock file</a> is created from the final output.
</p>
</div>
<div class="detail">
<pre><code>
$ glide update
</code></pre>
</div>
</div>
<div class="row">
<div class="description">
<h2>Reproducible Installations</h2>
<p>
Install the dependencies and revisions listed in the lock file into the <code>vendor</code>
directory. If no lock file exists an update is run.
</p>
</div>
<div class="detail">
<pre><code>
$ glide install
</code></pre>
</div>
</div>
<div class="row">
<div class="description">
<h2>Add More Dependencies</h2>
<p>
Add a new dependency to the <code>glide.yaml</code>, install the
dependency, and re-resolve the dependency tree. Optionally, put
a version after an anchor.
</p>
</div>
<div class="detail">
<pre><code>
$ glide get github.com/foo/bar
</code></pre>
Or
<pre><code>
$ glide get github.com/foo/bar#^1.2.3
</code></pre>
</div>
</div>
<div class="row divider">
<div class="description">
<h2>Next Steps</h2>
<ul>
<li><a href="http://glide.readthedocs.org/en/latest/vendor/">Find out how vendor directories work in Go</a></li>
<li><a href="http://glide.readthedocs.org/en/latest/versions/">Learn the version and version range syntax</a></li>
<li><a href="http://glide.readthedocs.org/en/latest/glide.yaml/">Read the syntax of the glide.yaml file</a></li>
</ul>
</div>
<div class="description description-right">
<h2>The Project</h2>
<ul>
<li>Contribute by filing an <a href="https://github.com/Masterminds/glide/issues">issue</a> or submitting a <a href="https://github.com/Masterminds/glide/pulls">pull request</a></li>
<li>Connect and chat on <a href="https://gitter.im/Masterminds/glide">Gitter</a></li>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>