From bd1d40d8f86d05d8ef3e529c1cf056590292d761 Mon Sep 17 00:00:00 2001 From: Tristan Isham Date: Wed, 27 Mar 2024 20:50:08 -0400 Subject: [PATCH] FIxed dev comments --- cli/meta/symlink_unix.go | 3 +++ cli/meta/symlink_win.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 {