Skip to content

fix: show real build commit and version#1862

Merged
ffflorian merged 7 commits into
mainfrom
claude/pkgsource-info-endpoint-fktau
Jun 6, 2026
Merged

fix: show real build commit and version#1862
ffflorian merged 7 commits into
mainfrom
claude/pkgsource-info-endpoint-fktau

Conversation

@ffflorian

@ffflorian ffflorian commented Jun 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • Dockerfile bakes COMMIT and VERSION build args (provided by the docker-image-release action) into ENV vars so the running container knows what it was built from.
  • /_info now reads COMMIT and VERSION from the environment instead of falling back to placeholder strings.
  • find-up dependency removed — version no longer needs to be read from package.json at runtime.
  • build:commit script and its references in dist and start:dev removed.

https://claude.ai/code/session_015DzWsQFLrDMb1xz63nrx3T

claude and others added 5 commits June 6, 2026 12:14
SOURCE_COMMIT was never passed at build time, so the endpoint always
returned the fallback value. Pass it as a Docker ARG/ENV so the running
container reflects the actual commit used to build the image.

Drop the version field because the displayed value was stale.

https://claude.ai/code/session_015DzWsQFLrDMb1xz63nrx3T
…ction

Switch from SOURCE_COMMIT to the COMMIT and VERSION args now provided
by the updated action (bac5580). Dockerfile bakes both into ENV vars;
the info controller reads them at runtime, falling back to package.json
version for local non-Docker runs.

https://claude.ai/code/session_015DzWsQFLrDMb1xz63nrx3T
Remove build-args from the test Docker build step (the action handles
injection). Drop the config.VERSION fallback so version comes only from
the VERSION env var set at image build time. Remove the build:commit
script and its callers in dist and start:dev.

https://claude.ai/code/session_015DzWsQFLrDMb1xz63nrx3T
VERSION and COMMIT are now baked in at Docker build time, so there is
no need to locate and parse package.json at startup. Read VERSION from
process.env.VERSION (falls back to 'unknown' for local non-Docker runs)
and drop the find-up dependency entirely.

https://claude.ai/code/session_015DzWsQFLrDMb1xz63nrx3T
@ffflorian ffflorian changed the title fix(_info): show build commit hash, drop stale version field fix(_info): show real build commit and version Jun 6, 2026
ffflorian and others added 2 commits June 6, 2026 14:30
Add COMMIT to ServerConfig interface and use config.COMMIT/config.VERSION
in the info controller instead of reading process.env directly.

https://claude.ai/code/session_015DzWsQFLrDMb1xz63nrx3T
@ffflorian ffflorian changed the title fix(_info): show real build commit and version fix: show real build commit and version Jun 6, 2026
@ffflorian ffflorian merged commit 756af41 into main Jun 6, 2026
7 checks passed
@ffflorian ffflorian deleted the claude/pkgsource-info-endpoint-fktau branch June 6, 2026 12:33
github-actions Bot pushed a commit that referenced this pull request Jun 6, 2026
## [1.14.3](v1.14.2...v1.14.3) (2026-06-06)

### Bug Fixes

* show real build commit and version ([#1862](#1862)) ([756af41](756af41))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants