-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Use POSIX complaint ! operator in find #2132
Conversation
-not is a GNU extension and not all find(8) implementations support it. It's just an alias for ! which is POSIX compliant. Now gitea compiles on NetBSD at least.
vendor/code.gitea.io/git/Makefile
Outdated
@@ -18,7 +18,7 @@ generate: | |||
|
|||
.PHONY: fmt | |||
fmt: | |||
find . -name "*.go" -type f -not -path "./vendor/*" -not -path "./benchmark/*" | xargs gofmt -s -w | |||
find . -name "*.go" -type f ! -path "./vendor/*" ! -path "./benchmark/*" | xargs gofmt -s -w |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not make changes to vendor directory. Create PR in github.com/go-gitea/git/ repository for this change
What @lafriks said, vendored files are changed upstream :) https://github.com/go-gitea/git/ in this case |
@bkcsoft why did you close PR, there was also gitea Makefile changes that are ok here? |
Ooh, must've missed that one. Sorry 😅 |
LGTM |
LGTM |
- Unset the http proxies environments for the `TestWebhookProxy`. - Resolves go-gitea#2132 (cherry picked from commit 244b9786fc431c362c6f5ac971ac4d04b97f78a2) (cherry picked from commit 8602dfa6a21e1ac9fa0fc6f5952da219a57b2613) (cherry picked from commit 862144920945575c26e026281aab6e9bf3e00c5c) (cherry picked from commit aefa77f917b58dc9e3fc013790aaa286f0beda5b)
-not is a GNU extension and not all find(8) implementations
support it. It's just an alias for ! which is POSIX compliant.
Now gitea compiles on NetBSD at least.