Skip to content

Commit 52603ca

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 <[email protected]>
1 parent 458872b commit 52603ca

File tree

9 files changed

+5
-35
lines changed

9 files changed

+5
-35
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 4 deletions
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.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ By running this software, you can self-host a bundle server to work with Git's
99

1010
Be sure to clone inside the `src` directory of your `GOROOT`.
1111

12-
Once there, you can build the `git-bundle-server` executable with
12+
Once there, you can build the `git-bundle-server` and `git-bundle-web-server`
13+
executables with
1314

1415
```ShellSession
15-
$ go build git-bundle-server/cmd/git-bundle-server
16+
$ go build -o . ./...
1617
```
1718

1819
## Bundle Management through CLI

cmd/git-bundle-server/go.mod

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

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

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

go.mod

Lines changed: 0 additions & 5 deletions
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

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

internal/bundles/go.mod

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

internal/core/go.mod

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

internal/git/go.mod

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

0 commit comments

Comments
 (0)