Explorar o código

Merge pull request #13344 from hqhq/hq_fix_arm64_test

Fix unit-test build error on ARM64
Michael Crosby %!s(int64=10) %!d(string=hai) anos
pai
achega
39bf57e085
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      pkg/archive/archive_test.go

+ 2 - 1
pkg/archive/archive_test.go

@@ -873,7 +873,8 @@ func getNlink(path string) (uint64, error) {
 	if !ok {
 		return 0, fmt.Errorf("expected type *syscall.Stat_t, got %t", stat.Sys())
 	}
-	return statT.Nlink, nil
+	// We need this conversion on ARM64
+	return uint64(statT.Nlink), nil
 }
 
 func getInode(path string) (uint64, error) {