You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+32-2
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,9 @@ GOSPACE_PKG=storj.io/storj
24
24
GOSPACE_REPO=git@github.com:storj/storj.git
25
25
```
26
26
27
-
First time you should run:
27
+
## Setup
28
+
29
+
First time when setting up your local system.
28
30
29
31
```
30
32
gospace setup
@@ -37,6 +39,8 @@ gospace setup
37
39
3. Run `GO111MODULE=on go mod vendor` inside `$GOSPACE_ROOT/src/$GOSPACE_PKG` folder. This downloads all dependencies into vendor directory.
38
40
4. Moves all vendored directories to `$GOSPACE_ROOT/src`.
39
41
42
+
## Updating
43
+
40
44
Every time go.mod changes, you should run:
41
45
42
46
```
@@ -47,4 +51,30 @@ gospace update
47
51
48
52
1. Delete all non-repository directories in `$GOSPACE_ROOT/src`, effectively deleting all vendored directories. Unless you have placed something manually, which is also deleted.
49
53
2. Run `GO111MODULE=on go mod vendor` inside `$GOSPACE_ROOT/src/$GOSPACE_PKG` folder. This downloads all dependencies into vendor directory.
50
-
3. Moves all vendored directories to `$GOSPACE_ROOT/src`.
54
+
3. Moves all vendored directories to `$GOSPACE_ROOT/src`.
55
+
56
+
## Low-level commands
57
+
58
+
To calculate hash of the `go.mod` and `go.sum` file:
0 commit comments