Skip to content

Commit fb35cdf

Browse files
committed
refactor: revert o use a single go module again
I experimented with multiple Go modules, but the fact is that Go is smart enough to strip out the uneeded modules from the user's `go.mod`, so this is not in fact needed. Also, maintaining a single module is much easier.
1 parent ba1c1fd commit fb35cdf

18 files changed

Lines changed: 34 additions & 497 deletions

File tree

.github/workflows/ai.yml

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

.github/workflows/anthropic.yml

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

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: build
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
uses: charmbracelet/meta/.github/workflows/build.yml@main
7+
with:
8+
go-version: ""
9+
go-version-file: ./go.mod
10+
secrets:
11+
gh_pat: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"

.github/workflows/examples.yml

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

.github/workflows/lint.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: lint
2+
on:
3+
push:
4+
pull_request:
5+
6+
jobs:
7+
lint:
8+
uses: charmbracelet/meta/.github/workflows/lint.yml@main
9+
with:
10+
golangci_path: .golangci.yml
11+
timeout: 10m

.github/workflows/openai.yml

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

Taskfile.yaml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,22 @@
11
version: '3'
22

3-
env:
4-
GOPRIVATE: github.com/charmbracelet/*
5-
6-
vars:
7-
PACKAGES:
8-
- ./ai
9-
- ./anthropic
10-
- ./examples
11-
- ./openai
12-
133
tasks:
144
fmt:
155
desc: Run gofumpt for all packages
166
cmds:
17-
- for: { var: PACKAGES }
18-
cmd: cd {{.ITEM}} && gofmt -s -w .
7+
- gofmt -s -w .
198

209
modernize:
2110
desc: Run modernize for all packages
2211
cmds:
23-
- for: { var: PACKAGES }
24-
cmd: cd {{.ITEM}} && modernize -fix ./...
12+
- modernize -fix ./...
2513

2614
lint:
2715
desc: Run base linters for all packages
2816
cmds:
29-
- for: { var: PACKAGES }
30-
cmd: cd {{.ITEM}} && golangci-lint run
17+
- golangci-lint run
3118

3219
test:
3320
desc: Run tests for all packages
3421
cmds:
35-
- for: { var: PACKAGES }
36-
cmd: cd {{.ITEM}} && go test ./... {{.CLI_ARGS}}
22+
- go test ./... {{.CLI_ARGS}}

ai/go.mod

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

ai/go.sum

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

anthropic/go.mod

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

0 commit comments

Comments
 (0)