diff --git a/cli/meta/symlink_unix.go b/cli/meta/symlink_unix.go index 1f0c92d..0b54ef8 100644 --- a/cli/meta/symlink_unix.go +++ b/cli/meta/symlink_unix.go @@ -7,6 +7,9 @@ package meta import "os" +// Symlink is a wrapper around Go's os.Symlink, +// but with automatic privilege escalation on windows +// for systems that do not support non-admin symlinks. func Symlink(oldname, newname string) error { return os.Symlink(oldname, newname) } diff --git a/cli/meta/symlink_win.go b/cli/meta/symlink_win.go index 0edd0e3..7aea629 100644 --- a/cli/meta/symlink_win.go +++ b/cli/meta/symlink_win.go @@ -48,7 +48,7 @@ func isAdmin() bool { return err == nil } -// newSymlink is a wrapper around Go's os.Symlink, +// Symlink is a wrapper around Go's os.Symlink, // but with automatic privilege escalation on windows // for systems that do not support non-admin symlinks. func Symlink(oldname, newname string) error {