Skip to content

Commit 0d905a8

Browse files
committed
add a copyright notice with original author
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent b847c7f commit 0d905a8

File tree

6 files changed

+25
-1
lines changed

6 files changed

+25
-1
lines changed

internal/locker/runtime_darwin.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ import (
2121
"path/filepath"
2222
)
2323

24+
// Based on https://github.com/adrg/xdg
25+
// Licensed under MIT License (MIT)
26+
// Copyright (c) 2014 Adrian-George Bostan <[email protected]>
27+
2428
func osDependentRunDir() (string, error) {
2529
home, err := os.UserHomeDir()
2630
if err != nil {

internal/locker/runtime_unix.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ import (
2424
"strconv"
2525
)
2626

27+
// Based on https://github.com/adrg/xdg
28+
// Licensed under MIT License (MIT)
29+
// Copyright (c) 2014 Adrian-George Bostan <[email protected]>
30+
2731
func osDependentRunDir() (string, error) {
2832
run := filepath.Join("run", "user", strconv.Itoa(os.Getuid()))
2933
if _, err := os.Stat(run); err == nil {
30-
return run
34+
return run, nil
3135
}
3236

3337
// /run/user/$uid is set by pam_systemd, but might not be present, especially in containerized environments

internal/locker/runtime_windows.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import (
2323
"golang.org/x/sys/windows"
2424
)
2525

26+
// Based on https://github.com/adrg/xdg
27+
// Licensed under MIT License (MIT)
28+
// Copyright (c) 2014 Adrian-George Bostan <[email protected]>
29+
2630
func osDependentRunDir() (string, error) {
2731
flags := []uint32{windows.KF_FLAG_DEFAULT, windows.KF_FLAG_DEFAULT_PATH}
2832
for _, flag := range flags {

pkg/remote/cache_darwin.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ import (
2121
"path/filepath"
2222
)
2323

24+
// Based on https://github.com/adrg/xdg
25+
// Licensed under MIT License (MIT)
26+
// Copyright (c) 2014 Adrian-George Bostan <[email protected]>
27+
2428
func osDependentCacheDir() (string, error) {
2529
home, err := os.UserHomeDir()
2630
if err != nil {

pkg/remote/cache_unix.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import (
2323
"path/filepath"
2424
)
2525

26+
// Based on https://github.com/adrg/xdg
27+
// Licensed under MIT License (MIT)
28+
// Copyright (c) 2014 Adrian-George Bostan <[email protected]>
29+
2630
func osDependentCacheDir() (string, error) {
2731
home, err := os.UserHomeDir()
2832
if err != nil {

pkg/remote/cache_windows.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import (
2323
"golang.org/x/sys/windows"
2424
)
2525

26+
// Based on https://github.com/adrg/xdg
27+
// Licensed under MIT License (MIT)
28+
// Copyright (c) 2014 Adrian-George Bostan <[email protected]>
29+
2630
func osDependentCacheDir() (string, error) {
2731
flags := []uint32{windows.KF_FLAG_DEFAULT, windows.KF_FLAG_DEFAULT_PATH}
2832
for _, flag := range flags {

0 commit comments

Comments
 (0)