Skip to content

fix: use correct RELEASE_VERSION for config_helper.exs#12

Merged
rymcol merged 1 commit intomasterfrom
fix/release-version-mismatch
Mar 11, 2026
Merged

fix: use correct RELEASE_VERSION for config_helper.exs#12
rymcol merged 1 commit intomasterfrom
fix/release-version-mismatch

Conversation

@init4samwise
Copy link

Problem

The Dockerfile copies config_helper.exs to /app/releases/${RELEASE_VERSION}/ but we were passing our git tag version (e.g. 1.0.1-init4) instead of the actual Elixir release version (10.0.0 from rel/config.exs).

This caused config_helper.exs to be missing from the expected location, breaking runtime config loading.

Fix

Hardcode RELEASE_VERSION=10.0.0 to match the Elixir release version defined in rel/config.exs.

Note

If blockscout upstream bumps their release version, we'll need to update this value accordingly.

@init4samwise init4samwise requested a review from a team March 11, 2026 17:42
build-args: |
BLOCKSCOUT_VERSION=${{ github.ref_name }}+commit.${{ steps.version.outputs.short_sha }}
RELEASE_VERSION=${{ steps.version.outputs.version }}
RELEASE_VERSION=10.0.0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should pin it

build-args: |
BLOCKSCOUT_VERSION=${{ github.ref_name }}+commit.${{ steps.version.outputs.short_sha }}
RELEASE_VERSION=${{ steps.version.outputs.version }}
RELEASE_VERSION=10.0.0
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here-- why pinned?

The Dockerfile copies config_helper.exs to /app/releases/${RELEASE_VERSION}/
This must match the Elixir release version defined in rel/config.exs.

Now extracts the version dynamically with:
  grep -oP 'set version: "\K[^"]+' rel/config.exs

This way it stays in sync with upstream without manual updates.
@init4samwise init4samwise force-pushed the fix/release-version-mismatch branch from 6d3208f to c173239 Compare March 11, 2026 17:45
@rymcol rymcol merged commit 50d4ada into master Mar 11, 2026
16 of 18 checks passed
@rymcol rymcol deleted the fix/release-version-mismatch branch March 11, 2026 17:52
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