Add go mod tidy to build process for fresh clones
- Update Makefile to include go mod tidy in all build targets - Add build-all target specifically for fresh clone deployment - Update README to include go mod tidy in manual build instructions - Resolves 'updates to go.mod needed' error after module path changes
This commit is contained in:
10
README.md
10
README.md
@@ -82,8 +82,14 @@ A self-hosted, cross-platform update management platform built for homelabs and
|
||||
```bash
|
||||
# Clone and build
|
||||
git clone https://github.com/Fimeg/RedFlag.git
|
||||
cd RedFlag/aggregator-server
|
||||
go build -o redflag-server cmd/server/main.go
|
||||
cd RedFlag
|
||||
|
||||
# Option 1: Use Makefile (recommended)
|
||||
make build-all
|
||||
|
||||
# Option 2: Manual build
|
||||
cd aggregator-server && go mod tidy && go build -o redflag-server cmd/server/main.go
|
||||
cd ../aggregator-agent && go mod tidy && go build -o redflag-agent cmd/agent/main.go
|
||||
|
||||
# Interactive setup wizard
|
||||
sudo ./redflag-server --setup
|
||||
|
||||
Reference in New Issue
Block a user