From a974e810c254b820678b043b974982304af43996 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Thu, 30 Nov 2023 20:20:45 +0800 Subject: [PATCH] fix: build error --- .github/workflows/test_author.yml | 38 ------------------------------- dns/resolver.go | 2 +- 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 .github/workflows/test_author.yml diff --git a/.github/workflows/test_author.yml b/.github/workflows/test_author.yml deleted file mode 100644 index 1a13612e..00000000 --- a/.github/workflows/test_author.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Test Change Author Name -on: - workflow_dispatch: - push: - branches: - - Alpha - pull_request_target: - branches: - - Alpha - -jobs: - update-dependencies: - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Configure Git - run: | - git config --global user.name 'gVisor bot' - git config --global user.email 'gvisor-bot@google.com' - - - name: Change Author Name - run: | - git fetch origin - git checkout origin/Alpha -b test-author - git filter-branch -f --env-filter " - GIT_AUTHOR_NAME='gVisor bot' - GIT_AUTHOR_EMAIL='gvisor-bot@google.com' - GIT_COMMITTER_NAME='gVisor bot' - GIT_COMMITTER_EMAIL='gvisor-bot@google.com' - " HEAD - - - name: Push changes - run: | - git push origin test-author --force \ No newline at end of file diff --git a/dns/resolver.go b/dns/resolver.go index fa11830e..f236e141 100644 --- a/dns/resolver.go +++ b/dns/resolver.go @@ -500,7 +500,7 @@ func NewResolver(config Config) *Resolver { log.Debugln("adding geosite policy: %s inversed %t", key, inverse) matcher, err := NewGeoSite(key) if err != nil { - log.Warnln("adding geosite policy %s error: %s", key) + log.Warnln("adding geosite policy %s error: %s", key, err) continue } insertTriePolicy()