Skip to content

Update source installation requirements #3124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 16, 2018
Merged

Update source installation requirements #3124

merged 7 commits into from
Jan 16, 2018

Conversation

bkcsoft
Copy link
Member

@bkcsoft bkcsoft commented Dec 9, 2017

We require Golang 1.8 since we use net/url.PathEscape which was not introduced until then

url.PathEscape introduction into Golang: golang/go@7e2bf95
Introduction into Gitea: https://github.com/go-gitea/gitea/pull/2996/files#diff-7e18c3b28c00aad8476da1a8231f6864R109

Closes #3123

Also changed the tests to run against what we state as the requirement...

We require Golang 1.8 since we use `net/url.PathEscape` which was not introduced until then
If we state Golang 1.8 we should test using that version as well
@lunny lunny added the type/docs This PR mainly updates/creates documentation label Dec 9, 2017
@lunny lunny added this to the 1.4.0 milestone Dec 9, 2017
@lunny
Copy link
Member

lunny commented Dec 9, 2017

CI failed.

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 9, 2017
@sapk
Copy link
Member

sapk commented Dec 9, 2017

LGTM. Maybe restart (commit amend or rebase) tests.

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Dec 9, 2017
@lunny
Copy link
Member

lunny commented Dec 10, 2017

CI failed seems related since I have restarted many times.

.drone.yml Outdated
@@ -56,7 +56,7 @@ pipeline:
event: [ push, tag, pull_request ]

build:
image: webhippie/golang:edge
image: webhippie/golang:1.8
Copy link
Member

@lafriks lafriks Dec 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use edge in build step? as latest go versions tend to improve performance and reduce binary size

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Releases are maid under

static:
that should use the latest version? I think the goal is to validate that it compile under 1.8.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but this but binary built in this step is used in docker images

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is now step to test if it builds without gcc so that could be reused to test if it builds in 1.8

Copy link
Member

@sapk sapk Dec 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With #2927 will be build inside first stage of docker ^^.

~~~From my point either edge or 1.8 is good since test stage will also check that the binary will compile.~~~ 
Edit: You mark a good point with docker binary ^^

@lafriks
Copy link
Member

lafriks commented Jan 16, 2018

@bkcsoft I hope you don't mind I changed back that edge as it's binary is used for docker image. To see if code compiles on 1.8 I changed build with no gcc step to :1.8

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jan 16, 2018
@strk
Copy link
Member

strk commented Jan 16, 2018 via email

@@ -17,7 +17,7 @@ menu:

This section will not include basic [installation instructions](https://golang.org/doc/install).

**Note**: Go version 1.7 or higher is required
**Note**: Go version 1.8 or higher is required
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.7.10 or higher is actually required

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go Version, not Git Version :)

@lafriks
Copy link
Member

lafriks commented Jan 16, 2018

@strk it's about golang version needed to compile gitea code not git

@codecov-io
Copy link

Codecov Report

Merging #3124 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3124      +/-   ##
==========================================
- Coverage   35.58%   35.57%   -0.01%     
==========================================
  Files         281      281              
  Lines       40571    40571              
==========================================
- Hits        14438    14435       -3     
- Misses      23994    23995       +1     
- Partials     2139     2141       +2
Impacted Files Coverage Δ
models/repo_indexer.go 41.7% <0%> (-0.9%) ⬇️
models/repo.go 43.25% <0%> (-0.19%) ⬇️
models/repo_list.go 67.18% <0%> (+1.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 095fb9f...5b3c395. Read the comment docs.

@bkcsoft bkcsoft merged commit e722bdb into master Jan 16, 2018
@bkcsoft bkcsoft deleted the source-install-go18 branch January 16, 2018 21:22
@strk
Copy link
Member

strk commented Jan 17, 2018 via email

@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

modules/templates/helper.go:110: undefined: url.PathEscape
7 participants