Skip to content

Commit 6aff16f

Browse files
committed
*: convert to single-module architecture
The Go project recommends single-module repositories over multi-module wherever possible [1]; multi-module setups seem to be most useful when they represent separately-versioned and released projects living within the same repository (further analysis in [2]). Additionally, there is currently no convenient way to test all modules in a 'go.work' file (see [3]). Due to the factors listed, convert repository from multi- to single-module. [1] https://github.com/golang/go/wiki/Modules#should-i-have-multiple-modules-in-a-single-repository [2] https://medium.com/compass-true-north/catching-up-with-the-world-go-modules-in-a-monorepo-c3d1393d6024 [3] golang/go#50745 Signed-off-by: Victoria Dye <vdye@github.com>
1 parent 458872b commit 6aff16f

File tree

8 files changed

+2
-33
lines changed

8 files changed

+2
-33
lines changed

.github/workflows/main.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ jobs:
2121
- name: Build
2222
run: |
2323
cd $GITHUB_WORKSPACE/src/git-bundle-server
24-
go build ./cmd/git-bundle-server
25-
go build ./cmd/git-bundle-web-server
24+
go build -v ./...
2625
2726
- name: Check style
2827
run: |
2928
cd $GITHUB_WORKSPACE/src/git-bundle-server
30-
go vet ./cmd/git-bundle-server
31-
go vet ./cmd/git-bundle-web-server
29+
go vet ./...
3230
3331
# TODO: add automated tests.

cmd/git-bundle-server/go.mod

-3
This file was deleted.

cmd/git-bundle-web-server/go.mod

-3
This file was deleted.

go.mod

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
module github.com/github/git-bundle-server
22

33
go 1.19
4-
5-
require (
6-
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 // indirect
7-
golang.org/x/tools v0.1.12 // indirect
8-
)

go.work

-9
This file was deleted.

internal/bundles/go.mod

-3
This file was deleted.

internal/core/go.mod

-3
This file was deleted.

internal/git/go.mod

-3
This file was deleted.

0 commit comments

Comments
 (0)