Skip to content

Commit

Permalink
unite multiple go.mod files (#168)
Browse files Browse the repository at this point in the history
* unite multiple go.mod files

* update workflows to follow the change of go.mod place
  • Loading branch information
pankona authored Jul 19, 2023
1 parent 1f2dbb5 commit 7309057
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 70 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/generate_pr_from_issue.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/go-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,30 @@ 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:
- uses: actions/checkout@v3
- 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:
- uses: actions/checkout@v3
- 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

8 changes: 3 additions & 5 deletions .github/workflows/notify_long_time_no_see.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 0 additions & 17 deletions tool/articlegen/go.mod

This file was deleted.

2 changes: 1 addition & 1 deletion tool/makepr/go.mod → tool/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pankona/pankona.github.com/tool/makepr
module github.com/pankona/pankona.github.com/tool

go 1.20

Expand Down
File renamed without changes.
33 changes: 0 additions & 33 deletions tool/makepr/go.sum

This file was deleted.

1 change: 1 addition & 0 deletions tool/sincelastcommit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sincelastcommit
3 changes: 0 additions & 3 deletions tool/sincelastcommit/go.mod

This file was deleted.

Empty file removed tool/sincelastcommit/go.sum
Empty file.

0 comments on commit 7309057

Please sign in to comment.