Skip to content

Commit d4e8ebc

Browse files
committed
Merge branch 'master' of git://github.com/go-gitea/gitea
2 parents 5c75305 + 714dcf9 commit d4e8ebc

Some content is hidden

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

65 files changed

+759
-533
lines changed

.drone.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ steps:
6666
image: golang:1.11 # this step is kept as the lowest version of golang that we support
6767
environment:
6868
GO111MODULE: on
69+
GOPROXY: off
6970
commands:
7071
- go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
7172

@@ -74,6 +75,7 @@ steps:
7475
image: golang:1.12
7576
environment:
7677
GO111MODULE: on
78+
GOPROXY: off
7779
GOOS: linux
7880
GOARCH: 386
7981
commands:
@@ -92,6 +94,7 @@ steps:
9294
- make test-vendor
9395
- make build
9496
environment:
97+
GOPROXY: https://goproxy.cn # proxy.golang.org is blocked in China, this proxy is not
9598
TAGS: bindata sqlite sqlite_unlock_notify
9699

97100
- name: unit-test
@@ -100,6 +103,7 @@ steps:
100103
commands:
101104
- make unit-test-coverage
102105
environment:
106+
GOPROXY: off
103107
TAGS: bindata sqlite sqlite_unlock_notify
104108
depends_on:
105109
- build
@@ -116,6 +120,7 @@ steps:
116120
commands:
117121
- make test
118122
environment:
123+
GOPROXY: off
119124
TAGS: bindata sqlite sqlite_unlock_notify
120125
depends_on:
121126
- build
@@ -143,6 +148,7 @@ steps:
143148
commands:
144149
- make test
145150
environment:
151+
GOPROXY: off
146152
TAGS: bindata
147153
depends_on:
148154
- tag-pre-condition
@@ -159,6 +165,7 @@ steps:
159165
- timeout -s ABRT 20m make test-sqlite-migration
160166
- timeout -s ABRT 20m make test-sqlite
161167
environment:
168+
GOPROXY: off
162169
TAGS: bindata
163170
depends_on:
164171
- build
@@ -172,6 +179,7 @@ steps:
172179
- make test-mysql-migration
173180
- make integration-test-coverage
174181
environment:
182+
GOPROXY: off
175183
TAGS: bindata
176184
TEST_LDAP: 1
177185
depends_on:
@@ -192,6 +200,7 @@ steps:
192200
- timeout -s ABRT 20m make test-mysql-migration
193201
- timeout -s ABRT 20m make test-mysql
194202
environment:
203+
GOPROXY: off
195204
TAGS: bindata
196205
TEST_LDAP: 1
197206
depends_on:
@@ -209,6 +218,7 @@ steps:
209218
- timeout -s ABRT 20m make test-mysql8-migration
210219
- timeout -s ABRT 20m make test-mysql8
211220
environment:
221+
GOPROXY: off
212222
TAGS: bindata
213223
TEST_LDAP: 1
214224
depends_on:
@@ -223,6 +233,7 @@ steps:
223233
- timeout -s ABRT 20m make test-pgsql-migration
224234
- timeout -s ABRT 20m make test-pgsql
225235
environment:
236+
GOPROXY: off
226237
TAGS: bindata
227238
TEST_LDAP: 1
228239
depends_on:
@@ -237,6 +248,7 @@ steps:
237248
- make test-mssql-migration
238249
- make test-mssql
239250
environment:
251+
GOPROXY: off
240252
TAGS: bindata
241253
TEST_LDAP: 1
242254
depends_on:
@@ -248,6 +260,7 @@ steps:
248260
commands:
249261
- make coverage
250262
environment:
263+
GOPROXY: off
251264
TAGS: bindata
252265
depends_on:
253266
- unit-test
@@ -380,6 +393,7 @@ steps:
380393
- make generate
381394
- make release
382395
environment:
396+
GOPROXY: off
383397
TAGS: bindata sqlite sqlite_unlock_notify
384398

385399
- name: gpg-sign
@@ -481,6 +495,7 @@ steps:
481495
- make generate
482496
- make release
483497
environment:
498+
GOPROXY: off
484499
TAGS: bindata sqlite sqlite_unlock_notify
485500

486501
- name: gpg-sign
@@ -607,6 +622,8 @@ steps:
607622
dry_run: true
608623
repo: gitea/gitea
609624
tags: linux-amd64
625+
build_args:
626+
- GOPROXY=off
610627
when:
611628
event:
612629
- pull_request
@@ -618,6 +635,8 @@ steps:
618635
auto_tag: true
619636
auto_tag_suffix: linux-amd64
620637
repo: gitea/gitea
638+
build_args:
639+
- GOPROXY=off
621640
password:
622641
from_secret: docker_password
623642
username:
@@ -668,6 +687,8 @@ steps:
668687
dry_run: true
669688
repo: gitea/gitea
670689
tags: linux-arm64
690+
build_args:
691+
- GOPROXY=off
671692
when:
672693
event:
673694
- pull_request
@@ -679,6 +700,8 @@ steps:
679700
auto_tag: true
680701
auto_tag_suffix: linux-arm64
681702
repo: gitea/gitea
703+
build_args:
704+
- GOPROXY=off
682705
password:
683706
from_secret: docker_password
684707
username:

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ FROM golang:1.12-alpine3.10 AS build-env
66
#Build deps
77
RUN apk --no-cache add build-base git
88

9+
ARG GOPROXY
10+
ENV GOPROXY ${GOPROXY:-direct}
11+
912
ARG GITEA_VERSION
1013
ARG TAGS="sqlite sqlite_unlock_notify"
1114
ARG VERSION

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ BINDATA := modules/{options,public,templates}/bindata.go
2424
GOFILES := $(shell find . -name "*.go" -type f ! -path "./vendor/*" ! -path "*/bindata.go")
2525
GOFMT ?= gofmt -s
2626

27-
GOFLAGS := -i -v
27+
GOFLAGS := -v
2828
EXTRA_GOFLAGS ?=
2929

3030
TAGS ?=

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ require (
115115
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
116116
gopkg.in/asn1-ber.v1 v1.0.0-20150924051756-4e86f4367175 // indirect
117117
gopkg.in/bufio.v1 v1.0.0-20140618132640-567b2bfa514e // indirect
118-
gopkg.in/editorconfig/editorconfig-core-go.v1 v1.2.0
118+
gopkg.in/editorconfig/editorconfig-core-go.v1 v1.3.0
119119
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
120120
gopkg.in/ini.v1 v1.42.0
121121
gopkg.in/ldap.v3 v3.0.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ gopkg.in/bufio.v1 v1.0.0-20140618132640-567b2bfa514e/go.mod h1:xsQCaysVCudhrYTfz
451451
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
452452
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
453453
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
454-
gopkg.in/editorconfig/editorconfig-core-go.v1 v1.2.0 h1:CO465/foR4+bY1xNYjZEl6l8By1g/iMsImoruxfEt84=
455-
gopkg.in/editorconfig/editorconfig-core-go.v1 v1.2.0/go.mod h1:s2mQFI9McjArkyCwyEwU//+luQENTnD/Lfb/7Sj3/kQ=
454+
gopkg.in/editorconfig/editorconfig-core-go.v1 v1.3.0 h1:oxOEwvhxLMpWpN+0pb2r9TWrM0DCFBHxbuIlS27tmFg=
455+
gopkg.in/editorconfig/editorconfig-core-go.v1 v1.3.0/go.mod h1:s2mQFI9McjArkyCwyEwU//+luQENTnD/Lfb/7Sj3/kQ=
456456
gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
457457
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
458458
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df h1:n7WqCuqOuCbNr617RXOY0AWRXxgwEyPp2z+p0+hgMuE=
Binary file not shown.

models/fixtures/org_user.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,9 @@
3939
uid: 20
4040
org_id: 19
4141
is_public: true
42+
43+
-
44+
id: 8
45+
uid: 24
46+
org_id: 25
47+
is_public: true

models/fixtures/team.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,13 @@
7777
name: review_team
7878
authorize: 1 # read
7979
num_repos: 1
80-
num_members: 1
80+
num_members: 1
81+
82+
-
83+
id: 10
84+
org_id: 25
85+
lower_name: notowners
86+
name: NotOwners
87+
authorize: 1 # owner
88+
num_repos: 0
89+
num_members: 1

models/fixtures/team_user.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,10 @@
6262
id: 11
6363
org_id: 17
6464
team_id: 9
65-
uid: 20
65+
uid: 20
66+
67+
-
68+
id: 12
69+
org_id: 25
70+
team_id: 10
71+
uid: 24

models/fixtures/two_factor.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-
2+
id: 1
3+
uid: 24
4+
secret: KlDporn6Ile4vFcKI8z7Z6sqK1Scj2Qp0ovtUzCZO6jVbRW2lAoT7UDxDPtrab8d2B9zKOocBRdBJnS8orsrUNrsyETY+jJHb79M82uZRioKbRUz15sfOpmJmEzkFeSg6S4LicUBQos=
5+
scratch_salt: Qb5bq2DyR2
6+
scratch_hash: 068eb9b8746e0bcfe332fac4457693df1bda55800eb0f6894d14ebb736ae6a24e0fc8fc5333c19f57f81599788f0b8e51ec1
7+
last_used_passcode:
8+
created_unix: 1564253724
9+
updated_unix: 1564253724

0 commit comments

Comments
 (0)