Skip to content

Fix discovery npm_version Docker path resolution#102

Merged
mkreyman merged 1 commit intomasterfrom
fix/npm-version-docker-path
Apr 13, 2026
Merged

Fix discovery npm_version Docker path resolution#102
mkreyman merged 1 commit intomasterfrom
fix/npm-version-docker-path

Conversation

@mkreyman
Copy link
Copy Markdown
Owner

Summary

  • @external_resource path used __DIR__/../../../../ which resolves outside Docker WORKDIR
  • Changed to File.cwd!/0 which resolves to project root in both dev and Docker
  • Discovery endpoint will now show "npm_version": "2.0.1" instead of "0.0.0"

Test plan

  • 2263 tests pass
  • After deploy: GET /.well-known/loopctl shows npm_version: "2.0.1"

🤖 Generated with Claude Code

The @external_resource path used __DIR__/../../../../ which resolves
outside the Docker WORKDIR (/app). Using File.cwd! resolves to the
project root in both local dev and Docker builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mkreyman mkreyman merged commit 49b1fcf into master Apr 13, 2026
6 checks passed
@mkreyman mkreyman deleted the fix/npm-version-docker-path branch April 13, 2026 04: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.

1 participant