@@ -75,22 +75,6 @@ sources use the following command
75
75
76
76
git clone --recurse-submodules http://github.com/intel-go/nff-go
77
77
78
- ### Working with a github fork
79
-
80
- If you are working on a fork, then the ** go get** command will not put nff-go in
81
- $GOPATH/src/github.com/intel-go. However, imports will continue to reference
82
- github.com/intel-go. This is a feature of Go and not a problem in the way nff-go
83
- is written. See [ stackoverflow
84
- article] ( https://stackoverflow.com/questions/14323872/using-forked-package-import-in-go )
85
- for a discussion. A simple way to resolve the problem is to use a symlink. If
86
- you are rscohn2 on github, and you forked nff-go into your personal account,
87
- then do this:
88
-
89
- cd $GOPATH/src/github.com
90
- mkdir intel-go
91
- cd intel-go
92
- ln -s ../rscohn2/nff-go .
93
-
94
78
## Setting up the build and run environment
95
79
96
80
### DPDK
@@ -115,13 +99,21 @@ $GOPATH/src/github.com/intel-go/nff-go/test/dpdk/dpdk-17.08/x86_64-native-linuxa
115
99
116
100
### Go
117
101
118
- Use Go version 1.11 or higher. To check the version of Go, do:
102
+ Use Go version 1.11.4 or higher. To check the version of Go, do:
119
103
120
104
go version
121
105
122
106
## Building NFF-GO
123
107
124
- cd $GOPATH/src/github.com/intel-go/nff-go
108
+ When Go compiler runs for the first time it downloads all dependent
109
+ packages listed in ` go.mod ` file. This operation cannot be done in
110
+ parallel because otherwise Go package cache gets corrupted. Because of
111
+ that it is necessary to run command ` go mod download ` before first
112
+ ` make ` is done. Another option is to use single process ` make -j1 `
113
+ when it is run for the first time, but may be quite slow.
114
+
115
+ cd nff-go
116
+ go mod download # do it once before first build
125
117
make -j8
126
118
127
119
## Building NFF-GO in debug mode
@@ -183,11 +175,6 @@ in these JSON files.
183
175
To clean all generated binaries, use the ** make clean** command. To delete all
184
176
deployed images listed in NFF_GO_HOSTS, use the ** make cleanall** command.
185
177
186
- ## Changing the DPDK sources
187
-
188
- If you use the ** make** command from NFF-GO directories, the DPDK driver is
189
- downloaded automatically.
190
-
191
178
## Contributing
192
179
193
180
If you want to contribute to NFF-Go, check our [ Contributing
0 commit comments