File tree 4 files changed +7
-17
lines changed
4 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,8 @@ set -o pipefail
7
7
ROOT=$( dirname " $BASH_SOURCE [0]" )
8
8
ROOT=$( cd $ROOT ; pwd -P)
9
9
10
- MKDIR=$( which mkdir)
11
- LN=$( which ln)
12
-
13
- GOPATH=" ${ROOT} /go/"
14
-
15
- function nvml::prepare() {
16
- ${MKDIR} -p " ${GOPATH} /src/tkestack.io/tkestack"
17
- $LN -sf $( cd " ${ROOT} /" && pwd -P) " ${GOPATH} /src/tkestack.io/tkestack/"
18
- }
19
-
20
10
function nvml::build() {
21
- (
22
- export GOPATH=${GOPATH}
23
- go build -o " ${ROOT} /go-nvml" " ./examples/"
24
- )
11
+ go build -o " ${ROOT} /go-nvml" " ./examples/"
25
12
}
26
13
27
-
28
- nvml::prepare
29
14
nvml::build
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
"fmt"
22
22
"time"
23
23
24
- "tkestack.io/tkestack/go- nvml"
24
+ "tkestack.io/nvml"
25
25
)
26
26
27
27
func failedMsg (msg string , err error ) {
Original file line number Diff line number Diff line change
1
+ module tkestack.io/nvml
2
+
3
+ go 1.13
Original file line number Diff line number Diff line change
1
+ tkestack.io/go-nvml v0.0.0-20191108051502-7331161898e9 h1:rP3ocdxzK72rxvpzdPvZkMeokEkoBwhV3f8fauJpQvY =
2
+ tkestack.io/go-nvml v0.0.0-20191108051502-7331161898e9 /go.mod h1:Zs270PzsLumWHP/TRJlJR4SwpmMERAtTIDAFxeJFKbA =
You can’t perform that action at this time.
0 commit comments