vendor: update archive/tar to match Go 1.17.0
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit aa606307b7
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
a1150245cc
commit
7096508811
4 changed files with 5 additions and 7 deletions
1
vendor/archive/tar/stat_actime1.go
vendored
1
vendor/archive/tar/stat_actime1.go
vendored
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build aix || linux || dragonfly || openbsd || solaris
|
||||||
// +build aix linux dragonfly openbsd solaris
|
// +build aix linux dragonfly openbsd solaris
|
||||||
|
|
||||||
package tar
|
package tar
|
||||||
|
|
1
vendor/archive/tar/stat_actime2.go
vendored
1
vendor/archive/tar/stat_actime2.go
vendored
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build darwin || freebsd || netbsd
|
||||||
// +build darwin freebsd netbsd
|
// +build darwin freebsd netbsd
|
||||||
|
|
||||||
package tar
|
package tar
|
||||||
|
|
1
vendor/archive/tar/stat_unix.go
vendored
1
vendor/archive/tar/stat_unix.go
vendored
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build aix || linux || darwin || dragonfly || freebsd || openbsd || netbsd || solaris
|
||||||
// +build aix linux darwin dragonfly freebsd openbsd netbsd solaris
|
// +build aix linux darwin dragonfly freebsd openbsd netbsd solaris
|
||||||
|
|
||||||
package tar
|
package tar
|
||||||
|
|
9
vendor/archive/tar/tar_test.go
vendored
9
vendor/archive/tar/tar_test.go
vendored
|
@ -262,16 +262,11 @@ func TestFileInfoHeaderDir(t *testing.T) {
|
||||||
func TestFileInfoHeaderSymlink(t *testing.T) {
|
func TestFileInfoHeaderSymlink(t *testing.T) {
|
||||||
testenv.MustHaveSymlink(t)
|
testenv.MustHaveSymlink(t)
|
||||||
|
|
||||||
tmpdir, err := os.MkdirTemp("", "TestFileInfoHeaderSymlink")
|
tmpdir := t.TempDir()
|
||||||
if err != nil {
|
|
||||||
t.Fatal(err)
|
|
||||||
}
|
|
||||||
defer os.RemoveAll(tmpdir)
|
|
||||||
|
|
||||||
link := filepath.Join(tmpdir, "link")
|
link := filepath.Join(tmpdir, "link")
|
||||||
target := tmpdir
|
target := tmpdir
|
||||||
err = os.Symlink(target, link)
|
if err := os.Symlink(target, link); err != nil {
|
||||||
if err != nil {
|
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
fi, err := os.Lstat(link)
|
fi, err := os.Lstat(link)
|
||||||
|
|
Loading…
Reference in a new issue