Skip to content

Commit 4d1aa83

Browse files
fix: embed runtime version with correct path (#796)
1 parent 6ead305 commit 4d1aa83

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
# Change Log
44

5+
## 2025-03-19 - Runtime 0.17.5
6+
7+
- fix: embed runtime version with correct path [#796](https://github.com/hypermodeinc/modus/pull/796)
8+
59
## 2025-03-19 - AssemblyScript SDK 0.17.4
610

711
- fix: correct json input/output of model invocations [#795](https://github.com/hypermodeinc/modus/pull/795)

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ COPY --from=node-builder /src/dist ./explorer/content/dist
3636

3737
# build the runtime binary
3838
ARG TARGETOS TARGETARCH RUNTIME_RELEASE_VERSION
39-
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o modus_runtime -ldflags "-s -w -X github.com/hypermodeinc/modus/runtime/config.version=$RUNTIME_RELEASE_VERSION" .
39+
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o modus_runtime -ldflags "-s -w -X github.com/hypermodeinc/modus/runtime/app.version=$RUNTIME_RELEASE_VERSION" .
4040

4141
# build the container image
4242
FROM ubuntu:24.04

runtime/.goreleaser.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ builds:
2626
ldflags:
2727
- -s
2828
- -w
29-
- -X github.com/hypermodeinc/modus/runtime/config.version={{.Version}}
29+
- -X github.com/hypermodeinc/modus/runtime/app.version={{.Version}}
3030
- >-
3131
{{- if eq .Os "windows"}}
3232
-checklinkname=0

runtime/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
EXECUTABLE := modus_runtime
22
VERSION := $(shell git describe --tags --always --match 'runtime/*' | sed 's/^runtime\///')
3-
LDFLAGS := -s -w -X github.com/hypermodeinc/modus/runtime/config.version=$(VERSION)
3+
LDFLAGS := -s -w -X github.com/hypermodeinc/modus/runtime/app.version=$(VERSION)
44

55
ifneq ($(OS), Windows_NT)
66
OS := $(shell uname -s)

0 commit comments

Comments
 (0)