Pkg.dir() difference between v0.5 and v0.6


#1

What explains this difference? I don’t see anything in NEWS.md.
Environment is Cygwin running under Windows 7.

JOSEFSACHS7548$ usr/bin/julia.exe
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0 (2016-09-19 18:14 UTC)
 _/ |\__'_|_|_|\__'_|  |
|__/                   |  x86_64-w64-mingw32

julia> Pkg.dir()
"C:\\cygwin64\\home\\sachs\\.julia\\v0.5"
JOSEFSACHS7548$ usr/bin/julia.exe
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0-dev.2493 (2017-01-31 18:53 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit c99e12c (0 days old master)
|__/                   |  x86_64-w64-mingw32

julia> Pkg.dir()
"C:\\Users\\sachs\\.julia\\v0.6"

#2

Thanks to Tony Kelman’s clue, I see this was changed in 1d561e8 (Rewrite homedir based on uv_os_homedir (#19636).

So, on Windows (even under Cygwin) the USERPROFILE environment variable is used, but not HOME.

I suggest that this change be noted in NEWS.md.