Skip to content

Commit 28a53f5

Browse files
authored
fix(build): make sure that the current version is used during build (#34)
1 parent 3e2e0ab commit 28a53f5

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.aider*
22
.opencode*
33
OpenCode.md
4+
dist/

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ builds:
1616
- amd64
1717
- arm64
1818
ldflags:
19-
- -s -w
19+
- -s -w -X github.com/mark3labs/mcp-filesystem-server/filesystemserver.Version={{.Version}}
2020
binary: mcp-filesystem-server
2121
main: .
2222

@@ -40,7 +40,7 @@ checksum:
4040

4141
# Using new snapshot configuration
4242
snapshot:
43-
name_template: "{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}"
43+
version_template: "{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}"
4444

4545
changelog:
4646
sort: asc

filesystemserver/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"github.com/mark3labs/mcp-go/server"
66
)
77

8-
var Version = "0.4.1"
8+
var Version = "dev"
99

1010
func NewFilesystemServer(allowedDirs []string) (*server.MCPServer, error) {
1111

0 commit comments

Comments
 (0)