Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-29 03:17:24 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-29 03:17:24 +0300
commit6f81edae2fb0e45b55cdedbb3c17e8bf2707f984 (patch)
tree7d2eaf783260f21d999e00a8866bec9ed48cc0ae /workhorse
parent893736005760f22ca0ed52d707dfdb9be6d5dce9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'workhorse')
-rw-r--r--workhorse/cmd/gitlab-zip-cat/main.go2
-rw-r--r--workhorse/go.mod1
-rw-r--r--workhorse/go.sum2
-rw-r--r--workhorse/internal/zipartifacts/metadata.go4
-rw-r--r--workhorse/internal/zipartifacts/metadata_test.go2
-rw-r--r--workhorse/internal/zipartifacts/open_archive.go2
-rw-r--r--workhorse/internal/zipartifacts/open_archive_test.go2
7 files changed, 5 insertions, 10 deletions
diff --git a/workhorse/cmd/gitlab-zip-cat/main.go b/workhorse/cmd/gitlab-zip-cat/main.go
index 05170ba5994..12a4187bad1 100644
--- a/workhorse/cmd/gitlab-zip-cat/main.go
+++ b/workhorse/cmd/gitlab-zip-cat/main.go
@@ -1,6 +1,7 @@
package main
import (
+ "archive/zip"
"context"
"errors"
"flag"
@@ -8,7 +9,6 @@ import (
"io"
"os"
- zip "gitlab.com/gitlab-org/golang-archive-zip"
"gitlab.com/gitlab-org/labkit/mask"
"gitlab.com/gitlab-org/gitlab/workhorse/internal/zipartifacts"
diff --git a/workhorse/go.mod b/workhorse/go.mod
index 58f3b4d2fd6..984516b0f5a 100644
--- a/workhorse/go.mod
+++ b/workhorse/go.mod
@@ -27,7 +27,6 @@ require (
github.com/smartystreets/goconvey v1.7.2
github.com/stretchr/testify v1.8.2
gitlab.com/gitlab-org/gitaly/v15 v15.11.0
- gitlab.com/gitlab-org/golang-archive-zip v0.1.1
gitlab.com/gitlab-org/labkit v1.18.0
gocloud.dev v0.29.0
golang.org/x/image v0.5.0
diff --git a/workhorse/go.sum b/workhorse/go.sum
index 23c9fe65024..e6ad3b77928 100644
--- a/workhorse/go.sum
+++ b/workhorse/go.sum
@@ -1934,8 +1934,6 @@ github.com/yvasiyarov/newrelic_platform_go v0.0.0-20140908184405-b21fdbd4370f/go
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
gitlab.com/gitlab-org/gitaly/v15 v15.11.0 h1:m1O8Z8qlKo5rkQpRtfkLAai03sNWjpxjt3xD+2g2BUU=
gitlab.com/gitlab-org/gitaly/v15 v15.11.0/go.mod h1:9iVjU+Rr+6pBkX7uHrocEubpjN4k7LrwD9ezvzSrN+Y=
-gitlab.com/gitlab-org/golang-archive-zip v0.1.1 h1:35k9giivbxwF03+8A05Cm8YoxoakU8FBCj5gysjCTCE=
-gitlab.com/gitlab-org/golang-archive-zip v0.1.1/go.mod h1:ZDtqpWPGPB9qBuZnZDrKQjIdJtkN7ZAoVwhT6H2o2kE=
gitlab.com/gitlab-org/labkit v1.18.0 h1:uYCIqDt/5V1hLIecTR4UNc1sD2+xiYplyKeyfpNN26A=
gitlab.com/gitlab-org/labkit v1.18.0/go.mod h1:nlLJvKgXcIclqWMI+rga2TckNBVHOtRCHMxBoVByNoE=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
diff --git a/workhorse/internal/zipartifacts/metadata.go b/workhorse/internal/zipartifacts/metadata.go
index 456d2c101cb..9fd158529e5 100644
--- a/workhorse/internal/zipartifacts/metadata.go
+++ b/workhorse/internal/zipartifacts/metadata.go
@@ -1,6 +1,7 @@
package zipartifacts
import (
+ "archive/zip"
"compress/gzip"
"encoding/binary"
"encoding/json"
@@ -8,8 +9,6 @@ import (
"path"
"sort"
"strconv"
-
- zip "gitlab.com/gitlab-org/golang-archive-zip"
)
type metadata struct {
@@ -30,7 +29,6 @@ func newMetadata(file *zip.File) metadata {
}
return metadata{
- //lint:ignore SA1019 Remove this once the minimum supported version is go 1.10 (go 1.9 and down do not support an alternative)
Modified: file.ModTime().Unix(),
Mode: strconv.FormatUint(uint64(file.Mode().Perm()), 8),
CRC: file.CRC32,
diff --git a/workhorse/internal/zipartifacts/metadata_test.go b/workhorse/internal/zipartifacts/metadata_test.go
index 6bde56ef27d..4ebb522d199 100644
--- a/workhorse/internal/zipartifacts/metadata_test.go
+++ b/workhorse/internal/zipartifacts/metadata_test.go
@@ -1,6 +1,7 @@
package zipartifacts
import (
+ "archive/zip"
"bytes"
"compress/gzip"
"context"
@@ -10,7 +11,6 @@ import (
"testing"
"github.com/stretchr/testify/require"
- zip "gitlab.com/gitlab-org/golang-archive-zip"
)
func generateTestArchive(w io.Writer) error {
diff --git a/workhorse/internal/zipartifacts/open_archive.go b/workhorse/internal/zipartifacts/open_archive.go
index d477725a39f..e8fdf9b8133 100644
--- a/workhorse/internal/zipartifacts/open_archive.go
+++ b/workhorse/internal/zipartifacts/open_archive.go
@@ -1,6 +1,7 @@
package zipartifacts
import (
+ "archive/zip"
"context"
"fmt"
"io"
@@ -11,7 +12,6 @@ import (
"gitlab.com/gitlab-org/gitlab/workhorse/internal/httprs"
"gitlab.com/gitlab-org/gitlab/workhorse/internal/transport"
- zip "gitlab.com/gitlab-org/golang-archive-zip"
"gitlab.com/gitlab-org/labkit/mask"
)
diff --git a/workhorse/internal/zipartifacts/open_archive_test.go b/workhorse/internal/zipartifacts/open_archive_test.go
index e339454345b..22f02ab6354 100644
--- a/workhorse/internal/zipartifacts/open_archive_test.go
+++ b/workhorse/internal/zipartifacts/open_archive_test.go
@@ -1,6 +1,7 @@
package zipartifacts
import (
+ "archive/zip"
"bytes"
"context"
"fmt"
@@ -12,7 +13,6 @@ import (
"testing"
"github.com/stretchr/testify/require"
- zip "gitlab.com/gitlab-org/golang-archive-zip"
)
func createArchive(t *testing.T, dir string) (map[string][]byte, int64) {