Skip to content
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

Respect REQUIRE_SIGNIN_VIEW for packages (#20873) #21232

Merged
merged 2 commits into from
Sep 23, 2022

Conversation

KN4CK3R
Copy link
Member

@KN4CK3R KN4CK3R commented Sep 21, 2022

Backport of #20873

Fix go-gitea#20863

When REQUIRE_SIGNIN_VIEW = true, even with public repositories, you can only see them after you login. The packages should not be accessed without login.

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
@lafriks
Copy link
Member

lafriks commented Sep 21, 2022

go lint failure

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 21, 2022
@KN4CK3R
Copy link
Member Author

KN4CK3R commented Sep 21, 2022

For files not touched by this PR. Could your restart the build? go fmt changes nothing on my side.

@wxiaoguang
Copy link
Contributor

I think the reason is that the gitea/test_env image used by drone pipeline has just upgraded the Golang to 1.19.x

Go 1.19 has different go fmt output.

Copy link
Contributor

@wxiaoguang wxiaoguang left a comment

Choose a reason for hiding this comment

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

LGTM while the lint failure should be fixed in another PR (when using Go 1.19.x fmt, more than 10 files will be changed)

@GiteaBot GiteaBot 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 Sep 21, 2022
@GiteaBot GiteaBot 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 Sep 22, 2022
@wxiaoguang
Copy link
Contributor

LGTM while the lint failure should be fixed in another PR (when using Go 1.19.x fmt, more than 10 files will be changed)

Go 1.19 fmt fix:

@wxiaoguang wxiaoguang merged commit bdf3be5 into go-gitea:release/v1.17 Sep 23, 2022
@KN4CK3R KN4CK3R deleted the backport-0a9a86b branch September 23, 2022 06:05
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
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. topic/packages type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants