1
0
Fork 0

//go/workspace: fix go workspace on MacOS

Change-Id: I5d287d53b31c36ef19f2ea4ebc7a0647c87f2e29
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1532
Reviewed-by: q3k <q3k@hackerspace.pl>
master
palid 2023-07-13 23:19:51 +02:00 committed by palid
parent 844b9b4353
commit 7094d69a70
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func getPathFSID(dir string) (uint64, error) {
}
switch x := st.Sys().(type) {
case *syscall.Stat_t:
return x.Dev, nil
return uint64(x.Dev), nil
default:
return 0, fmt.Errorf("unsupported operating system (got stat type %+v)", st.Sys())
}