Skip to content

Commit ae8a566

Browse files
committed
chore: simplify ldflags paths and update .gitignore patterns
- Shortened ldflags paths in Dockerfile and .goreleaser.yaml for clarity. - Updated .gitignore to cover binaries more broadly (`github-mcp-server*`).
1 parent 74871fd commit ae8a566

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea
2-
cmd/github-mcp-server/github-mcp-server
2+
github-mcp-server*
33

44
# VSCode
55
.vscode/*

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ builds:
99
- env:
1010
- CGO_ENABLED=0
1111
ldflags:
12-
- -s -w -X github.com/github/github-mcp-server/cmd/github-mcp-server.version={{.Version}} -X github.com/github/github-mcp-server/cmd/github-mcp-server.commit={{.Commit}} -X github.com/github/github-mcp-server/cmd/github-mcp-server.date={{.Date}}
12+
- -s -w -X cmd.version={{.Version}} -X cmd.commit={{.Commit}} -X cmd.date={{.Date}}
1313
goos:
1414
- linux
1515
- windows

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN --mount=type=cache,target=/var/cache/apk \
1313
RUN --mount=type=cache,target=/go/pkg/mod \
1414
--mount=type=cache,target=/root/.cache/go-build \
1515
--mount=type=bind,target=. \
16-
CGO_ENABLED=0 go build -ldflags="-s -w -X github.com/github/github-mcp-server/cmd/github-mcp-server.version=${VERSION} -X github.com/github/github-mcp-server/cmd/github-mcp-server.commit=$(git rev-parse HEAD) -X github.com/github/github-mcp-server/cmd/github-mcp-server.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
16+
CGO_ENABLED=0 go build -ldflags="-s -w -X cmd.version=${VERSION} -X cmd.commit=$(git rev-parse HEAD) -X cmd.date=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
1717
-o /bin/github-mcp-server .
1818

1919
# Make a stage to run the app

0 commit comments

Comments
 (0)