This is kinda odd. When i try to to "go clean -i -r" go tries (permissions) to remove runtime.a. Is this normal? :
go clean -i -x
cd /home/gotestprojects/src/simplehelloworld
rm -f simplehelloworld.test simplehelloworld.test.exe
rm -f /home/gotestprojects/pkg/linux_amd64/simplehelloworld.a
go clean -r -x
cd /home/gotestprojects/src/simplehelloworld
rm -f simplehelloworld.test simplehelloworld.test.exe
cd /usr/local/go/src/pkg/runtime
rm -f runtime.test runtime.test.exe defs1_linux defs1_linux.exe defs2_linux defs2_linux.exe defs_arm_linux defs_arm_linux.exe defs_darwin defs_darwin.exe defs_dragonfly defs_dragonfly.exe defs_freebsd defs_freebsd.exe defs_linux defs_linux.exe defs_netbsd defs_netbsd.exe defs_netbsd_386 defs_netbsd_386.exe defs_netbsd_amd64 defs_netbsd_amd64.exe defs_netbsd_arm defs_netbsd_arm.exe defs_openbsd defs_openbsd.exe defs_windows defs_windows.exe malloc1 malloc1.exe mallocrand mallocrand.exe mallocrep mallocrep.exe mallocrep1 mallocrep1.exe race race.exe syscall_windows_test syscall_windows_test.exe vlop_arm_test vlop_arm_test.exe
cd /usr/local/go/src/pkg/unsafe
rm -f unsafe.test unsafe.test.exe
And now the error :
go clean -i -r -x
cd /home/gotestprojects/src/simplehelloworld
rm -f simplehelloworld.test simplehelloworld.test.exe
rm -f /home/gotestprojects/pkg/linux_amd64/simplehelloworld.a
cd /usr/local/go/src/pkg/runtime
rm -f runtime.test runtime.test.exe defs1_linux defs1_linux.exe defs2_linux defs2_linux.exe defs_arm_linux defs_arm_linux.exe defs_darwin defs_darwin.exe defs_dragonfly defs_dragonfly.exe defs_freebsd defs_freebsd.exe defs_linux defs_linux.exe defs_netbsd defs_netbsd.exe defs_netbsd_386 defs_netbsd_386.exe defs_netbsd_amd64 defs_netbsd_amd64.exe defs_netbsd_arm defs_netbsd_arm.exe defs_openbsd defs_openbsd.exe defs_windows defs_windows.exe malloc1 malloc1.exe mallocrand mallocrand.exe mallocrep mallocrep.exe mallocrep1 mallocrep1.exe race race.exe syscall_windows_test syscall_windows_test.exe vlop_arm_test vlop_arm_test.exe
rm -f /usr/local/go/pkg/linux_amd64/runtime.a
go clean: remove /usr/local/go/pkg/linux_amd64/runtime.a: permission denied
cd /usr/local/go/src/pkg/unsafe
rm -f unsafe.test unsafe.test.exe
Maybe something i dont understand ?