Skip to content

Commit 26b85d7

Browse files
fix: fix missing seed.json on startup by renaming file (#75)
Renamed `data/seed_2025_05_16.json` to `data/seed.json` and updated `Dockerfile` ## Motivation and Context When cloning the repository and building the project using: ```bash go build ./cmd/registry .\\registry.exe ``` the application fails to start because the default seed file path (`data/seed.json`) does not exist in the repo: ``` Failed to read seed file: failed to read file: open data/seed.json: The system cannot find the file specified. ``` ## How Has This Been Tested? ```bash go build ./cmd/registry .\\registry.exe // ./registry ``` ## Breaking Changes None ## Types of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed Co-authored-by: Adam Jones <[email protected]>
1 parent 4f62964 commit 26b85d7

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUN go build ${GO_BUILD_TAGS:+-tags="$GO_BUILD_TAGS"} -o /build/registry ./cmd/r
77
FROM alpine:latest
88
WORKDIR /app
99
COPY --from=builder /build/registry .
10-
COPY --from=builder /app/data/seed_2025_05_16.json /app/data/seed.json
10+
COPY --from=builder /app/data/seed.json /app/data/seed.json
1111
COPY --from=builder /app/internal/docs/swagger.yaml /app/internal/docs/swagger.yaml
1212
EXPOSE 8080
1313

0 commit comments

Comments
 (0)