Skip to content

Commit 49b486a

Browse files
Patel230claude
andcommitted
chore: library-only refactor + keep go.work active in CI
- Drop cmd/ binaries, Dockerfile, release/docker workflows, goreleaser. - Normalize hawk require to v0.1.0. - CI: stop removing go.work in fmt-vet/lint/security/deadcode so the committed 'replace hawk => ../hawk' stays active (every job already clones hawk into ../hawk); add GOPRIVATE/GONOSUMDB/GONOSUMCHECK. This bypasses the frozen proxy hawk@v0.1.0 (which lacks hawk/shared/types). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 930e88f commit 49b486a

9 files changed

Lines changed: 4 additions & 601 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ concurrency:
3434
env:
3535
GO_VERSION: "1.26.4"
3636
GOPROXY: "https://proxy.golang.org,direct"
37+
GOPRIVATE: "github.com/GrayCodeAI/*"
38+
GONOSUMDB: "github.com/GrayCodeAI/*"
39+
GONOSUMCHECK: "1"
3740

3841
jobs:
3942
# -------------------------------------------------------------------------
@@ -50,8 +53,6 @@ jobs:
5053
cache: true
5154
- name: Clone hawk for shared/types
5255
run: git clone --depth=1 https://github.com/GrayCodeAI/hawk.git ../hawk
53-
- name: Remove go.work
54-
run: rm -f go.work go.work.sum
5556
- name: gofumpt diff
5657
run: |
5758
go install mvdan.cc/gofumpt@latest
@@ -78,8 +79,6 @@ jobs:
7879
cache: true
7980
- name: Clone hawk for shared/types
8081
run: git clone --depth=1 https://github.com/GrayCodeAI/hawk.git ../hawk
81-
- name: Remove go.work (local dev only)
82-
run: rm -f go.work go.work.sum
8382
- uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v7.0.0
8483
with:
8584
version: v2.1.0
@@ -142,8 +141,6 @@ jobs:
142141
cache: true
143142
- name: Clone hawk for shared/types
144143
run: git clone --depth=1 https://github.com/GrayCodeAI/hawk.git ../hawk
145-
- name: Remove go.work
146-
run: rm -f go.work go.work.sum
147144
- name: govulncheck
148145
run: |
149146
go install golang.org/x/vuln/cmd/govulncheck@latest
@@ -168,8 +165,6 @@ jobs:
168165
cache: true
169166
- name: Clone hawk for shared/types
170167
run: git clone --depth=1 https://github.com/GrayCodeAI/hawk.git ../hawk
171-
- name: Remove go.work
172-
run: rm -f go.work go.work.sum
173168
- name: deadcode
174169
run: |
175170
go install golang.org/x/tools/cmd/deadcode@latest

.github/workflows/docker.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.goreleaser.yml

Lines changed: 0 additions & 121 deletions
This file was deleted.

Dockerfile

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)