Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/mobile: clean up broken packages (?) #12212
Please don't say that this is rare case and close the issue, because it is common form. When taking an import path with
Solution is for package maintainers to find all such cases and rename the folders and files.
Generally for Windows I am periodically noticing some errors, such as test failures when building Go from recent Git revision, errors in /x/... packages telling that temporary folder can't be deleted because it is not empty (I think this is because slight difference in semantic of file API between Unix and Windows) and so on.
@ip I suspect the errors are from failed removals of temp files / directories. Windows won't allow you to remove opened files or directories that are current for any live process. Feel free to fix those. I would look in my %TEMP% directory, delete all files / directories there, then run all suspicious tests or build steps and see what is left in %TEMP%. This should give me some clues of where to look.
os.Rename in init fails in Windows for various reasons. One of them is the temporary files extracted from NDK, OpenAL archives. For some reason, some of them have read-only properties. (golang/go#12212) > gomobile init gomobile: rename C:\Users\foo\pkg\gomobile\work-427911983\openal\include\AL C:\Users\foo\pkg\gomobile\android-ndk-r10e\arm\sysroot\usr\include\AL: Access is denied. We reset the read-only bits of all the extracted files. Change-Id: Ib958cbedf1b7527ecb5b9318f23fe9437dc7c241 Reviewed-on: https://go-review.googlesource.com/12970 Reviewed-by: David Crawshaw <email@example.com>