Skip to content

Commit d4c6bdd

Browse files
authored
Merge pull request #136 from nhooyr/simplify-root
Simplify root of repository
2 parents 93d751f + 067b40e commit d4c6bdd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+63
-97
lines changed

.circleci/config.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ jobs:
77
- checkout
88
- restore_cache:
99
keys:
10-
- go-v3-{{ checksum "go.sum" }}
10+
- go-v4-{{ checksum "mod/go.sum" }}
1111
# Fallback to using the latest cache if no exact match is found.
12-
- go-v3-
13-
- run: ./ci/fmt.sh
12+
- go-v4-
13+
- run: ./mod/ci/fmt.sh
1414
- save_cache:
1515
paths:
1616
- /root/gopath
1717
- /root/.cache/go-build
18-
key: go-v3-{{ checksum "go.sum" }}
18+
key: go-v4-{{ checksum "mod/go.sum" }}
1919

2020
lint:
2121
docker:
@@ -24,15 +24,15 @@ jobs:
2424
- checkout
2525
- restore_cache:
2626
keys:
27-
- go-v3-{{ checksum "go.sum" }}
27+
- go-v4-{{ checksum "mod/go.sum" }}
2828
# Fallback to using the latest cache if no exact match is found.
29-
- go-v3-
30-
- run: ./ci/lint.sh
29+
- go-v4-
30+
- run: ./mod/ci/lint.sh
3131
- save_cache:
3232
paths:
3333
- /root/gopath
3434
- /root/.cache/go-build
35-
key: go-v3-{{ checksum "go.sum" }}
35+
key: go-v4-{{ checksum "mod/go.sum" }}
3636

3737
test:
3838
docker:
@@ -41,20 +41,20 @@ jobs:
4141
- checkout
4242
- restore_cache:
4343
keys:
44-
- go-v3-{{ checksum "go.sum" }}
44+
- go-v4-{{ checksum "mod/go.sum" }}
4545
# Fallback to using the latest cache if no exact match is found.
46-
- go-v3-
47-
- run: ./ci/test.sh
46+
- go-v4-
47+
- run: ./mod/ci/test.sh
4848
- store_artifacts:
49-
path: ci/out
49+
path: mod/ci/out
5050
destination: out
5151
- save_cache:
5252
paths:
5353
- /root/gopath
5454
- /root/.cache/go-build
55-
key: go-v3-{{ checksum "go.sum" }}
55+
key: go-v4-{{ checksum "mod/go.sum" }}
5656
- store_test_results:
57-
path: ci/out
57+
path: mod/ci/out
5858

5959
workflows:
6060
version: 2

README.md

Lines changed: 2 additions & 2 deletions

docs/CONTRIBUTING.md

Lines changed: 12 additions & 9 deletions

go.mod

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

accept.go renamed to mod/accept.go

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

ci/fmt.sh renamed to mod/ci/fmt.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env bash
22

3-
set -euo pipefail
3+
set -euox pipefail
44
cd "$(dirname "${0}")"
5-
cd "$(git rev-parse --show-toplevel)"
5+
cd "$(git rev-parse --show-toplevel)/mod"
66

77
gen() {
88
# Unfortunately, this is the only way to ensure go.mod and go.sum are correct.
@@ -16,19 +16,19 @@ gen() {
1616
fmt() {
1717
gofmt -w -s .
1818
go run go.coder.com/go-tools/cmd/goimports -w "-local=$(go list -m)" .
19-
go run mvdan.cc/sh/cmd/shfmt -i 2 -w -s -sr .
19+
go run mvdan.cc/sh/cmd/shfmt -i 2 -w -s -sr ..
2020
# shellcheck disable=SC2046
2121
npx prettier \
2222
--write \
2323
--print-width 120 \
2424
--no-semi \
2525
--trailing-comma all \
2626
--loglevel silent \
27-
$(git ls-files "*.yaml" "*.yml" "*.md")
27+
$(git ls-files "../*.yaml" "../*.yml" "../*.md")
2828
}
2929

3030
unstaged_files() {
31-
git ls-files --other --modified --exclude-standard
31+
git ls-files --other --modified --exclude-standard ..
3232
}
3333

3434
check() {
File renamed without changes.

0 commit comments

Comments
 (0)