Skip to content

Commit 9ff6312

Browse files
authored
Move modules/gzip to gitea.com/macaron/gzip (#9058)
* Move modules/gzip to gitea.com/macaron/gzip * Fix vendor
1 parent ba4e8f2 commit 9ff6312

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2963
-5154
lines changed

go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ require (
99
gitea.com/macaron/captcha v0.0.0-20190822015246-daa973478bae
1010
gitea.com/macaron/cors v0.0.0-20190821152825-7dcef4a17175
1111
gitea.com/macaron/csrf v0.0.0-20190822024205-3dc5a4474439
12+
gitea.com/macaron/gzip v0.0.0-20191118033930-0c4c5566a0e5
1213
gitea.com/macaron/i18n v0.0.0-20190822004228-474e714e2223
1314
gitea.com/macaron/inject v0.0.0-20190805023432-d4c86e31027a
1415
gitea.com/macaron/macaron v1.3.3-0.20190821202302-9646c0587edb
@@ -55,9 +56,7 @@ require (
5556
github.com/joho/godotenv v1.3.0 // indirect
5657
github.com/kballard/go-shellquote v0.0.0-20170619183022-cd60e84ee657
5758
github.com/keybase/go-crypto v0.0.0-20170605145657-00ac4db533f6
58-
github.com/klauspost/compress v0.0.0-20161025140425-8df558b6cb6f
59-
github.com/klauspost/cpuid v0.0.0-20160302075316-09cded8978dc // indirect
60-
github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6 // indirect
59+
github.com/klauspost/compress v1.9.2
6160
github.com/lafriks/xormstore v1.3.2
6261
github.com/lib/pq v1.2.0
6362
github.com/lunny/dingtalk_webhook v0.0.0-20171025031554-e3534c89ef96

go.sum

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ gitea.com/macaron/cors v0.0.0-20190821152825-7dcef4a17175 h1:ikzdAGB6SsUGByW5wKl
2020
gitea.com/macaron/cors v0.0.0-20190821152825-7dcef4a17175/go.mod h1:rtOK4J20kpMD9XcNsnO5YA843YSTe/MUMbDj/TJ/Q7A=
2121
gitea.com/macaron/csrf v0.0.0-20190822024205-3dc5a4474439 h1:88c34YM29a1GlWLrLBaG/GTT2htDdJz1u3n9+lmPolg=
2222
gitea.com/macaron/csrf v0.0.0-20190822024205-3dc5a4474439/go.mod h1:IsQPHx73HnnqFBYiVHjg87q4XBZyGXXu77xANukvZuk=
23+
gitea.com/macaron/gzip v0.0.0-20191118033930-0c4c5566a0e5 h1:G/a7r0r2jEelSynBlv1+PAEZQKfsdRHQUMb1PlNvemM=
24+
gitea.com/macaron/gzip v0.0.0-20191118033930-0c4c5566a0e5/go.mod h1:jGHtoovArcQj+sw7NJxyPgjuRxOSG9a/oFu3VkLRTKQ=
2325
gitea.com/macaron/i18n v0.0.0-20190822004228-474e714e2223 h1:iZWwQif/LHMjBgfY/ua8CFVa4XMDfbbs7EZ0Q1dYguU=
2426
gitea.com/macaron/i18n v0.0.0-20190822004228-474e714e2223/go.mod h1:+qsc10s4hBsHKU/9luGGumFh4m5FFVc7uih+8/mM1NY=
2527
gitea.com/macaron/inject v0.0.0-20190803172902-8375ba841591/go.mod h1:h6E4kLao1Yko6DOU6QDnQPcuoNzvbZqzj2mtPcEn1aM=
@@ -334,12 +336,8 @@ github.com/keybase/go-crypto v0.0.0-20170605145657-00ac4db533f6/go.mod h1:ghbZsc
334336
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
335337
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
336338
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
337-
github.com/klauspost/compress v0.0.0-20161025140425-8df558b6cb6f h1:tCnZKEmDovgV4jmsclh6CuKk9AMzTzyVWfejgkgccVg=
338-
github.com/klauspost/compress v0.0.0-20161025140425-8df558b6cb6f/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
339-
github.com/klauspost/cpuid v0.0.0-20160302075316-09cded8978dc h1:WW8B7p7QBnFlqRVv/k6ro/S8Z7tCnYjJHcQNScx9YVs=
340-
github.com/klauspost/cpuid v0.0.0-20160302075316-09cded8978dc/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek=
341-
github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6 h1:KAZ1BW2TCmT6PRihDPpocIy1QTtsAsrx6TneU/4+CMg=
342-
github.com/klauspost/crc32 v0.0.0-20161016154125-cb6bfca970f6/go.mod h1:+ZoRqAPRLkC4NPOvfYeR5KNOrY6TD+/sAC3HXPZgDYg=
339+
github.com/klauspost/compress v1.9.2 h1:LfVyl+ZlLlLDeQ/d2AqfGIIH4qEDu0Ed2S5GyhCWIWY=
340+
github.com/klauspost/compress v1.9.2/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A=
343341
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
344342
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
345343
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=

integrations/lfs_getobject_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import (
1515
"testing"
1616

1717
"code.gitea.io/gitea/models"
18-
"code.gitea.io/gitea/modules/gzip"
1918
"code.gitea.io/gitea/modules/lfs"
2019
"code.gitea.io/gitea/modules/setting"
2120

21+
"gitea.com/macaron/gzip"
2222
gzipp "github.com/klauspost/compress/gzip"
2323
"github.com/stretchr/testify/assert"
2424
)

modules/gzip/gzip_test.go

Lines changed: 0 additions & 131 deletions
This file was deleted.

routers/routes/routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"code.gitea.io/gitea/models"
1717
"code.gitea.io/gitea/modules/auth"
1818
"code.gitea.io/gitea/modules/context"
19-
"code.gitea.io/gitea/modules/gzip"
2019
"code.gitea.io/gitea/modules/lfs"
2120
"code.gitea.io/gitea/modules/log"
2221
"code.gitea.io/gitea/modules/metrics"
@@ -44,6 +43,7 @@ import (
4443
"gitea.com/macaron/captcha"
4544
"gitea.com/macaron/cors"
4645
"gitea.com/macaron/csrf"
46+
"gitea.com/macaron/gzip"
4747
"gitea.com/macaron/i18n"
4848
"gitea.com/macaron/macaron"
4949
"gitea.com/macaron/session"

vendor/gitea.com/macaron/gzip/go.mod

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gitea.com/macaron/gzip/go.sum

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

vendor/github.com/klauspost/compress/LICENSE

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/klauspost/compress/flate/copy.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

vendor/github.com/klauspost/compress/flate/crc32_amd64.go

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)