Skip to content

Commit 5daa9ea

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 b32d658 commit 5daa9ea

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy