質問編集履歴

2

revel run 追記

2020/06/10 09:07

投稿

satoruuuuuu223
satoruuuuuu223

スコア0

test CHANGED
File without changes
test CHANGED
@@ -151,3 +151,57 @@
151
151
  GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hw/971981md2gnbvcbkyb0vphj80000gn/T/go-build401938658=/tmp/go-build -gno-record-gcc-switches -fno-common"
152
152
 
153
153
  ```
154
+
155
+
156
+
157
+ ### 追記(6月10日18時)
158
+
159
+
160
+
161
+ ```
162
+
163
+ revel run -v revel-app
164
+
165
+ ```
166
+
167
+
168
+
169
+ 実行結果
170
+
171
+ ```
172
+
173
+ INFO 18:04:32 revel.go:94: Import path is absolute or not specified path=
174
+
175
+ INFO 18:04:32 command_config.go:133: Checking import path /Users/macbook/golang with /Users/macbook/golang
176
+
177
+ INFO 18:04:32 revel.go:94: Returned import path path= buildpath=/Users/macbook/golang
178
+
179
+ INFO 18:04:32 command_config.go:301: Seeking remote package using= remote=github.com/revel/revel
180
+
181
+ INFO 18:04:32 command_config.go:301: Resolved called Seeking remote package remote=github.com/revel/revel using=
182
+
183
+ panic: runtime error: invalid memory address or nil pointer dereference
184
+
185
+ [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x124bb0a]
186
+
187
+
188
+
189
+ goroutine 1 [running]:
190
+
191
+ github.com/revel/cmd/utils.FindSrcPaths(0x0, 0x0, 0x152a1e5, 0x16, 0x0, 0xc00021e120, 0x0, 0x0, 0x4, 0x4, ...)
192
+
193
+ /Users/macbook/golang/pkg/mod/github.com/revel/cmd@v0.21.1/utils/file.go:358 +0x3ca
194
+
195
+ github.com/revel/cmd/model.(*CommandConfig).SetVersions(0xc00017e000, 0x1528c9e, 0x14)
196
+
197
+ /Users/macbook/golang/pkg/mod/github.com/revel/cmd@v0.21.1/model/command_config.go:301 +0xca
198
+
199
+ github.com/revel/cmd/model.(*CommandConfig).UpdateImportPath(0xc00017e000, 0x1d, 0x3)
200
+
201
+ /Users/macbook/golang/pkg/mod/github.com/revel/cmd@v0.21.1/model/command_config.go:154 +0x5f3
202
+
203
+ main.main()
204
+
205
+ /Users/macbook/golang/pkg/mod/github.com/revel/cmd@v0.21.1/revel/revel.go:94 +0x160
206
+
207
+ ```

1

go env, go version追記

2020/06/10 09:07

投稿

satoruuuuuu223
satoruuuuuu223

スコア0

test CHANGED
File without changes
test CHANGED
@@ -65,3 +65,89 @@
65
65
 
66
66
 
67
67
  ここにより詳細な情報を記載してください。
68
+
69
+
70
+
71
+ ### go version
72
+
73
+ ```
74
+
75
+ go version go1.14.3 darwin/amd64
76
+
77
+ ```
78
+
79
+
80
+
81
+ ### go env
82
+
83
+
84
+
85
+ ```
86
+
87
+ GO111MODULE="on"
88
+
89
+ GOARCH="amd64"
90
+
91
+ GOBIN=""
92
+
93
+ GOCACHE="/Users/macbook/Library/Caches/go-build"
94
+
95
+ GOENV="/Users/macbook/Library/Application Support/go/env"
96
+
97
+ GOEXE=""
98
+
99
+ GOFLAGS=""
100
+
101
+ GOHOSTARCH="amd64"
102
+
103
+ GOHOSTOS="darwin"
104
+
105
+ GOINSECURE=""
106
+
107
+ GONOPROXY=""
108
+
109
+ GONOSUMDB=""
110
+
111
+ GOOS="darwin"
112
+
113
+ GOPATH="/Users/macbook/golang"
114
+
115
+ GOPRIVATE=""
116
+
117
+ GOPROXY="https://proxy.golang.org,direct"
118
+
119
+ GOROOT="/usr/local/Cellar/go/1.14.3/libexec"
120
+
121
+ GOSUMDB="sum.golang.org"
122
+
123
+ GOTMPDIR=""
124
+
125
+ GOTOOLDIR="/usr/local/Cellar/go/1.14.3/libexec/pkg/tool/darwin_amd64"
126
+
127
+ GCCGO="gccgo"
128
+
129
+ AR="ar"
130
+
131
+ CC="clang"
132
+
133
+ CXX="clang++"
134
+
135
+ CGO_ENABLED="1"
136
+
137
+ GOMOD="/dev/null"
138
+
139
+ CGO_CFLAGS="-g -O2"
140
+
141
+ CGO_CPPFLAGS=""
142
+
143
+ CGO_CXXFLAGS="-g -O2"
144
+
145
+ CGO_FFLAGS="-g -O2"
146
+
147
+ CGO_LDFLAGS="-g -O2"
148
+
149
+ PKG_CONFIG="pkg-config"
150
+
151
+ GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hw/971981md2gnbvcbkyb0vphj80000gn/T/go-build401938658=/tmp/go-build -gno-record-gcc-switches -fno-common"
152
+
153
+ ```