Skip to content

Conversation

@KN4CK3R
Copy link
Member

@KN4CK3R KN4CK3R commented Mar 18, 2021

This fixes a random integration test error caused by invalid lowercase filepaths.

Example:
Go creates a random working directory
/tmp/tmp.HjvjKQ29GM/integrations/...

IsMigrateURLAllowed uses the lowercase path for its test which fails on case sensitive filesystems
/tmp/tmp.hjvjkq29gm/integrations/...

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Mar 18, 2021
@6543 6543 added type/bug skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. labels Mar 18, 2021
@6543 6543 added this to the 1.14.0 milestone Mar 18, 2021
Copy link
Contributor

@zeripath zeripath left a comment

Choose a reason for hiding this comment

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

This makes the allowed and blocked domains listed case dependent - are we sure that's going to work?

@KN4CK3R
Copy link
Member Author

KN4CK3R commented Mar 18, 2021

Good catch. As of gobwas/glob#37 the needle could be lowered just for the check.

@zeripath
Copy link
Contributor

it's my fault for not dropping the lowercasing in the original PR and dealing with this properly then.

@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 Mar 18, 2021
@zeripath zeripath merged commit e8ad6c1 into go-gitea:master Mar 18, 2021
@KN4CK3R KN4CK3R deleted the fix-lowercase-path branch March 18, 2021 14:01
@go-gitea go-gitea locked and limited conversation to collaborators May 13, 2021
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. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants