diff --git a/.github/workflows/generate_pr_from_issue.yaml b/.github/workflows/generate_pr_from_issue.yaml index a80444d96..57e20055f 100644 --- a/.github/workflows/generate_pr_from_issue.yaml +++ b/.github/workflows/generate_pr_from_issue.yaml @@ -15,8 +15,8 @@ jobs: - name: setup go uses: actions/setup-go@v4 with: - go-version-file: 'tool/articlegen/go.mod' - cache-dependency-path: 'tool/articlegen/go.sum' + go-version-file: 'tool/go.mod' + cache-dependency-path: 'tool/go.sum' - name: install articlegen run: | cd ./tool/articlegen diff --git a/.github/workflows/go-tools.yml b/.github/workflows/go-tools.yml index e6fad30e5..f2082aae1 100644 --- a/.github/workflows/go-tools.yml +++ b/.github/workflows/go-tools.yml @@ -18,10 +18,10 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version-file: 'tool/articlegen/go.mod' - cache-dependency-path: 'tool/articlegen/go.sum' + go-version-file: 'tool/go.mod' + cache-dependency-path: 'tool/go.sum' - name: Build - run: pushd ./tool/articlegen && go build -v + run: go build -v -C ./tool/articlegen ci-makepr: runs-on: ubuntu-latest steps: @@ -29,10 +29,10 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version-file: 'tool/makepr/go.mod' - cache-dependency-path: 'tool/makepr/go.sum' + go-version-file: 'tool/go.mod' + cache-dependency-path: 'tool/go.sum' - name: Build - run: pushd ./tool/makepr && go build -v + run: go build -v -C ./tool/makepr ci-sincelastcommit: runs-on: ubuntu-latest steps: @@ -40,8 +40,8 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version-file: 'tool/sincelastcommit/go.mod' - cache-dependency-path: 'tool/sincelastcommit/go.sum' + go-version-file: 'tool/go.mod' + cache-dependency-path: 'tool/go.sum' - name: Build - run: pushd ./tool/makepr && go build -v + run: go build -v -C ./tool/makepr diff --git a/.github/workflows/notify_long_time_no_see.yaml b/.github/workflows/notify_long_time_no_see.yaml index e8c2cf16b..9ddd93c97 100644 --- a/.github/workflows/notify_long_time_no_see.yaml +++ b/.github/workflows/notify_long_time_no_see.yaml @@ -24,12 +24,10 @@ jobs: - name: setup go uses: actions/setup-go@v4 with: - go-version-file: 'tool/sincelastcommit/go.mod' - cache-dependency-path: 'tool/sincelastcommit/go.sum' + go-version-file: 'tool/go.mod' + cache-dependency-path: 'tool/go.sum' - name: install sincelastcommit - run: | - cd ./tool/sincelastcommit - go install . + run: go install -C ./tool/sincelastcommit - name: Logging the collection items are actually head run: | cd tmp/head diff --git a/tool/articlegen/go.mod b/tool/articlegen/go.mod deleted file mode 100644 index b1ae380eb..000000000 --- a/tool/articlegen/go.mod +++ /dev/null @@ -1,17 +0,0 @@ -module github.com/pankona/pankona.github.com/tool/articlegen - -go 1.20 - -require ( - github.com/google/go-github/v33 v33.0.0 - golang.org/x/oauth2 v0.10.0 -) - -require ( - github.com/golang/protobuf v1.5.3 // indirect - github.com/google/go-querystring v1.0.0 // indirect - golang.org/x/crypto v0.11.0 // indirect - golang.org/x/net v0.12.0 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/protobuf v1.31.0 // indirect -) diff --git a/tool/makepr/go.mod b/tool/go.mod similarity index 86% rename from tool/makepr/go.mod rename to tool/go.mod index 29f1212b1..e3997edaf 100644 --- a/tool/makepr/go.mod +++ b/tool/go.mod @@ -1,4 +1,4 @@ -module github.com/pankona/pankona.github.com/tool/makepr +module github.com/pankona/pankona.github.com/tool go 1.20 diff --git a/tool/articlegen/go.sum b/tool/go.sum similarity index 100% rename from tool/articlegen/go.sum rename to tool/go.sum diff --git a/tool/makepr/go.sum b/tool/makepr/go.sum deleted file mode 100644 index 592be4f02..000000000 --- a/tool/makepr/go.sum +++ /dev/null @@ -1,33 +0,0 @@ -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-github/v33 v33.0.0 h1:qAf9yP0qc54ufQxzwv+u9H0tiVOnPJxo0lI/JXqw3ZM= -github.com/google/go-github/v33 v33.0.0/go.mod h1:GMdDnVZY/2TsWgp/lkYnpSAh6TrzhANBBwm6k6TTEXg= -github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk= -github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= -golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= -golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= -golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= -golang.org/x/oauth2 v0.10.0 h1:zHCpF2Khkwy4mMB4bv0U37YtJdTGW8jI0glAApi0Kh8= -golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= -google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= -google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= -google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= diff --git a/tool/sincelastcommit/.gitignore b/tool/sincelastcommit/.gitignore new file mode 100644 index 000000000..8de39f7a6 --- /dev/null +++ b/tool/sincelastcommit/.gitignore @@ -0,0 +1 @@ +sincelastcommit diff --git a/tool/sincelastcommit/go.mod b/tool/sincelastcommit/go.mod deleted file mode 100644 index b283ca5a0..000000000 --- a/tool/sincelastcommit/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/pankona/pankona.github.com/tool/sincelastcommit - -go 1.20 diff --git a/tool/sincelastcommit/go.sum b/tool/sincelastcommit/go.sum deleted file mode 100644 index e69de29bb..000000000