Skip to content

Conversation

eeyrjmr
Copy link
Contributor

@eeyrjmr eeyrjmr commented Aug 2, 2022

Windows doesn't have the concept of "executable" POSIX bits so for now always return true to minimise doctor and logging noise. Fixes: #20636

@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Aug 2, 2022
eeyrjmr and others added 4 commits August 3, 2022 23:55
Windows doesn't have the concept of "executable" POSIX bits so for now always return true to minimise doctor and logging noise. Addresses #20636
@techknowlogick techknowlogick added this to the 1.18.0 milestone Aug 4, 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 Aug 4, 2022
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (main@cf06e20). Click here to learn what that means.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main   #20637   +/-   ##
=======================================
  Coverage        ?   46.83%           
=======================================
  Files           ?      979           
  Lines           ?   135950           
  Branches        ?        0           
=======================================
  Hits            ?    63675           
  Misses          ?    64449           
  Partials        ?     7826           
Impacted Files Coverage Δ
modules/repository/hooks.go 53.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us.

@lunny lunny merged commit 7cc7c3e into go-gitea:main Aug 4, 2022
@lunny
Copy link
Member

lunny commented Aug 4, 2022

Please send backport to v1.17

@eeyrjmr eeyrjmr deleted the chkexe_on_windows branch August 4, 2022 15:45
vsysoev pushed a commit to IntegraSDL/gitea that referenced this pull request Aug 10, 2022
* Executable check always returns true for windows 

Windows doesn't have the concept of "executable" POSIX bits so for now always return true to minimise doctor and logging noise. Addresses go-gitea#20636

* gofmt tweak

* Update modules/repository/hooks.go

Co-authored-by: silverwind <[email protected]>

* gofmt comment line

Co-authored-by: silverwind <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
zeripath pushed a commit to zeripath/gitea that referenced this pull request Aug 17, 2022
Backport go-gitea#20637

Windows doesn't have the concept of "executable" POSIX bits so for now always return true to minimise doctor and logging noise. Addresses go-gitea#20636

Co-authored-by: silverwind <[email protected]>
@zeripath zeripath added the backport/done All backports for this PR have been created label Aug 17, 2022
zeripath added a commit that referenced this pull request Aug 17, 2022
Backport #20637

Windows doesn't have the concept of "executable" POSIX bits so for now always return true to minimise doctor and logging noise. Addresses #20636

Co-authored-by: silverwind <[email protected]>

Co-authored-by: JonRB <[email protected]>
Co-authored-by: silverwind <[email protected]>
@zeripath zeripath mentioned this pull request Aug 17, 2022
@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
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.

gitea doctor --run hooks produces warnings on windows
8 participants