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

fix #9648 | use filepath.IsAbs instead of path.IsAbs #9651

Merged

Conversation

6543
Copy link
Member

@6543 6543 commented Jan 8, 2020

related: golang/go#1483

PS: this need a better title ... maby?

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jan 8, 2020
@6543
Copy link
Member Author

6543 commented Jan 8, 2020

need backport lable to 1.11.0 🗡️

@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 Jan 8, 2020
@zeripath
Copy link
Contributor

zeripath commented Jan 8, 2020

I've killed a few builds to try to get this merged quicker.

@jolheiser are you able to test that this fixes this on windows?

@sapk
Copy link
Member

sapk commented Jan 8, 2020

@zeripath you killed the backport also 😄

Even if it doesn't fix the related issue, filepath has windows support compared to path.

@sapk sapk merged commit c779ac1 into go-gitea:master Jan 8, 2020
@6543 6543 deleted the fix-windows-path-setting-for-quenes-indexer branch January 8, 2020 14:33
@lunny lunny added the backport/done All backports for this PR have been created label Jan 8, 2020
@zeripath
Copy link
Contributor

zeripath commented Jan 8, 2020

The issue with filepath is that it always changes / to \ which may or may not be correct. I would have used it originally but I wasn't sure if leveldb tolerated it. I assumed that IsAbs would work.

It's annoying to be stuck in this half world. You never know when you have to use filepath or path.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants