aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cli/internal/tarpatch/tar_windows.go
diff options
context:
space:
mode:
author简律纯 <hsiangnianian@outlook.com>2023-04-28 01:36:55 +0800
committer简律纯 <hsiangnianian@outlook.com>2023-04-28 01:36:55 +0800
commitfc8c5fdce62fb229202659408798a7b6c98f6e8b (patch)
tree7554f80e50de4af6fd255afa7c21bcdd58a7af34 /cli/internal/tarpatch/tar_windows.go
parentdd84b9d64fb98746a230cd24233ff50a562c39c9 (diff)
downloadHydroRoll-fc8c5fdce62fb229202659408798a7b6c98f6e8b.tar.gz
HydroRoll-fc8c5fdce62fb229202659408798a7b6c98f6e8b.zip
Diffstat (limited to 'cli/internal/tarpatch/tar_windows.go')
-rw-r--r--cli/internal/tarpatch/tar_windows.go27
1 files changed, 0 insertions, 27 deletions
diff --git a/cli/internal/tarpatch/tar_windows.go b/cli/internal/tarpatch/tar_windows.go
deleted file mode 100644
index 486e6fd..0000000
--- a/cli/internal/tarpatch/tar_windows.go
+++ /dev/null
@@ -1,27 +0,0 @@
-//go:build windows
-// +build windows
-
-// Adapted from https://github.com/moby/moby/blob/924edb948c2731df3b77697a8fcc85da3f6eef57/pkg/archive/archive_windows.go
-// Copyright Docker, Inc.
-// SPDX-License-Identifier: Apache-2.0
-
-package tarpatch
-
-import (
- "archive/tar"
- "os"
-)
-
-// chmodTarEntry is used to adjust the file permissions used in tar header based
-// on the platform the archival is done.
-func chmodTarEntry(perm os.FileMode) os.FileMode {
- // Remove group- and world-writable bits.
- perm &= 0o755
-
- // Add the x bit: make everything +x on Windows
- return perm | 0o111
-}
-
-func sysStat(fi os.FileInfo, hdr *tar.Header) error {
- return nil
-}