Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
removed all generated files, use go generate instead
Browse files Browse the repository at this point in the history
  • Loading branch information
moodyhunter committed Sep 5, 2021
1 parent 19ce248 commit 09c9045
Show file tree
Hide file tree
Showing 213 changed files with 153 additions and 21,423 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
run: |
pacman -Syu --needed --noconfirm go protobuf
- name: Run go generate
run: |
go generate proto.go
go generate
- name: golangci-lint
uses: golangci/[email protected]
with:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ jobs:
run: |
pacman -Syu --needed --noconfirm go protobuf wget zip
- name: Run go generate
run: |
unset GOOS
unset GOARCH
unset GOARM
unset CGO_ENABLED
go generate proto.go
go generate
- name: Build V2Ray
run: |
mkdir -p build_assets
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ on:

jobs:
test:
strategy:
fail-fast: false
runs-on: ubuntu-latest
container:
image: archlinux/archlinux:base-devel
Expand All @@ -34,6 +32,11 @@ jobs:
- uses: actions/checkout@v2

- name: Run go generate
run: |
go generate proto.go
go generate
- name: Check Go modules
run: |
go mod tidy
Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Protobuf generated files
*.pb.go

# errorgen
errors.generated.go

# Binaries for programs and plugins
*.exe
*.exe~
Expand All @@ -24,5 +30,5 @@ mockgen
vprotogen
!infra/vprotogen/
errorgen
!common/errors/errorgen/
!infra/errorgen/
*.dat
164 changes: 0 additions & 164 deletions app/browserforwarder/config.pb.go

This file was deleted.

9 changes: 0 additions & 9 deletions app/browserforwarder/errors.generated.go

This file was deleted.

2 changes: 0 additions & 2 deletions app/browserforwarder/forwarder.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import (
"github.com/v2fly/BrowserBridge/handler"
)

//go:generate go run github.com/Shadowsocks-NET/v2ray-go/v4/common/errors/errorgen

type Forwarder struct {
ctx context.Context

Expand Down
2 changes: 0 additions & 2 deletions app/commander/commander.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

package commander

//go:generate go run github.com/Shadowsocks-NET/v2ray-go/v4/common/errors/errorgen

import (
"context"
"net"
Expand Down
Loading

0 comments on commit 09c9045

Please sign in to comment.