Skip to content

Commit 4e8fdfd

Browse files
committed
fix: clone hawk in CI for shared/types dependency
The go.mod replace directive points to ../hawk which doesn't exist in CI. Add a step to clone hawk alongside inspect so the dependency resolves correctly.
1 parent a0d1d1d commit 4e8fdfd

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
4848
with:
4949
go-version: ${{ env.GO_VERSION }}
5050
cache: true
51+
- name: Clone hawk for shared/types
52+
run: git clone --depth=1 https://github.com/GrayCodeAI/hawk.git ../hawk
5153
- name: Remove go.work
5254
run: rm -f go.work go.work.sum
5355
- name: gofumpt diff
@@ -74,6 +76,8 @@ jobs:
7476
with:
7577
go-version: ${{ env.GO_VERSION }}
7678
cache: true
79+
- name: Clone hawk for shared/types
80+
run: git clone --depth=1 https://github.com/GrayCodeAI/hawk.git ../hawk
7781
- name: Remove go.work (local dev only)
7882
run: rm -f go.work go.work.sum
7983
- uses: golangci/golangci-lint-action@v7
@@ -95,6 +99,8 @@ jobs:
9599
with:
96100
go-version: ${{ env.GO_VERSION }}
97101
cache: true
102+
- name: Clone hawk for shared/types
103+
run: git clone --depth=1 https://github.com/GrayCodeAI/hawk.git ../hawk
98104
- name: Tidy check
99105
run: |
100106
go mod tidy
@@ -125,6 +131,8 @@ jobs:
125131
with:
126132
go-version: ${{ env.GO_VERSION }}
127133
cache: true
134+
- name: Clone hawk for shared/types
135+
run: git clone --depth=1 https://github.com/GrayCodeAI/hawk.git ../hawk
128136
- name: Remove go.work
129137
run: rm -f go.work go.work.sum
130138
- name: govulncheck
@@ -160,6 +168,8 @@ jobs:
160168
with:
161169
go-version: ${{ env.GO_VERSION }}
162170
cache: true
171+
- name: Clone hawk for shared/types
172+
run: git clone --depth=1 https://github.com/GrayCodeAI/hawk.git ../hawk
163173
- name: Build
164174
env:
165175
GOOS: ${{ matrix.goos }}

0 commit comments

Comments
 (0)