diff options
author | techknowlogick <techknowlogick@gitea.io> | 2022-01-14 18:16:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-14 18:16:05 -0500 |
commit | 84145e45c50130922fae9055535ab5ea0378e1d4 (patch) | |
tree | fce077a5ae462840bb876ace79aca42abab29ed7 /vendor/github.com/mrjones/oauth/pre-commit.sh | |
parent | 2b16ca7c773de278ba01f122dc6f9f43d7534c52 (diff) | |
download | gitea-84145e45c50130922fae9055535ab5ea0378e1d4.tar.gz gitea-84145e45c50130922fae9055535ab5ea0378e1d4.zip |
Remove golang vendored directory (#18277)
* rm go vendor
* fix drone yaml
* add to gitignore
Diffstat (limited to 'vendor/github.com/mrjones/oauth/pre-commit.sh')
-rw-r--r-- | vendor/github.com/mrjones/oauth/pre-commit.sh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/vendor/github.com/mrjones/oauth/pre-commit.sh b/vendor/github.com/mrjones/oauth/pre-commit.sh deleted file mode 100644 index 91b9e88236..0000000000 --- a/vendor/github.com/mrjones/oauth/pre-commit.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -# ln -s $PWD/pre-commit.sh .git/hooks/pre-commit -go test *.go -RESULT=$? -if [[ $RESULT != 0 ]]; then - echo "REJECTING COMMIT (test failed with status: $RESULT)" - exit 1; -fi - -go fmt *.go -for e in $(ls examples); do - go build examples/$e/*.go - RESULT=$? - if [[ $RESULT != 0 ]]; then - echo "REJECTING COMMIT (Examples failed to compile)" - exit $RESULT; - fi - go fmt examples/$e/*.go -done - -exit 0 |