This pull request fixes #19 in a way consistent with the current code.
I think the issue was caused by the fact that the gx.GetPackageRoot() function uses os.Getwd() but doesn't evaluate symlinks.
The desired behaviour as illustrated by the top-level cwd variable is to evaluate symlinks after using os.Getwd().
This pull request makes this behaviour consistent by evaluating symlinks in gx.GetPackageRoot()'s output.
This pull request fixes #19 in a way consistent with the current code.
I think the issue was caused by the fact that the
gx.GetPackageRoot()
function usesos.Getwd()
but doesn't evaluate symlinks. The desired behaviour as illustrated by the top-levelcwd
variable is to evaluate symlinks after usingos.Getwd()
.This pull request makes this behaviour consistent by evaluating symlinks in
gx.GetPackageRoot()
's output.