Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jxsl13 committed Jul 9, 2024
1 parent f3049d6 commit 9518f85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ fmt:

gen_mock:
go generate ./...

syntax:
GOOS=windows go build ./...
GOOS=linux go build ./...
GOOS=darwin go build ./...
4 changes: 2 additions & 2 deletions fs_utils_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
// reference: os package
var chmodBits fs.FileMode = 0600

func Uid(from fs.FileInfo) int {
func toUID(from fs.FileInfo) int {
return -1
}

func Gid(from fs.FileInfo) int {
func toGID(from fs.FileInfo) int {
return -1
}

Expand Down

0 comments on commit 9518f85

Please sign in to comment.