Postingan lainnya
Error saat add dependencies menggunakan glide (golang)
D:\GO-LANG\latihan-crud>glide get github.com/wuriyanto48/floop
[INFO] Preparing to install 1 package.
[INFO] Attempting to get package github.com/wuriyanto48/floop
[INFO] --> Gathering release information for github.com/wuriyanto48/floop
[INFO] --> Adding github.com/wuriyanto48/floop to your configuration
[INFO] Downloading dependencies. Please wait...
[INFO] --> Fetching updates for github.com/wuriyanto48/floop
[INFO] Resolving imports
[INFO] Downloading dependencies. Please wait...
[INFO] Exporting resolved dependencies...
[INFO] --> Exporting github.com/wuriyanto48/floop
[INFO] Replacing existing vendor dependencies
[ERROR] Unable to export dependencies to vendor directory: Error moving files: exit status 1. output: Access is denied.
0 dir(s) moved.
sebelumnya saya sudah melihat dari refrensi di <a href=' https://github.com/Masterminds/glide/pull/889 '> https://github.com/Masterminds/glide/pull/889 </a> tetapi belum menemukan solusi yang tepat
versi glide saya adalah 0.13.2-dev
2 Jawaban:
coba dimainkan versi glidenya mas, beberapa issue sepertinya menayarankan mengganti versi glidenya
Coba edit file winbug.go pada directory <pre>$GOPATH\src\github.com\Masterminds\glide\path</pre>
Rubah<pre>cmd := exec.Command("cmd.exe", "/c", "move", o, n)</pre>menjadi<pre>cmd := exec.Command("cmd.exe", "/c", "xcopy /s/y", o, n+"\")</pre>pada function CustomRename
Kemudian jalankan command <pre>go get -u github.com/Masterminds/glide</pre> Terakhir, coba jalankan kembali <pre>glide install</pre> pada directory project
Sebelumnya saya mendapatkan error yang sama dan berhasil setelah mencoba solusi ini. Error tersebut dikarenakan terjadi kegagalan dalam mengcopy vendor dari temp directory ke vendor directory pada project kita.