Skip to content

fix(feature): interpolate documentation URL and feature id in wrapper script#736

Merged
skevetter merged 1 commit into
mainfrom
fix/feature-install-documentation-placeholder
Jul 24, 2026
Merged

fix(feature): interpolate documentation URL and feature id in wrapper script#736
skevetter merged 1 commit into
mainfrom
fix/feature-install-documentation-placeholder

Conversation

@skevetter

@skevetter skevetter commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Summary

The feature install wrapper script (pkg/devcontainer/feature/features.go) contained two JS template-literal expressions left over from the upstream TypeScript devcontainers CLI. They were pasted verbatim into Go raw strings and never interpolated, so they printed literally.

  • ${documentation} in the troubleshooting message printed literally instead of the feature's documentation URL. Users saw:

    Look at the documentation at ${documentation} for help troubleshooting this error.

  • ${escapeQuotesForShell(feature.id)} in the deprecation warning printed a literal JS function call instead of the feature id.

Both are replaced with Go string concatenation of the already-escaped documentation / id values, matching how the other fields (e.g. Documentation :) are already handled.

This is a cosmetic message fix; it does not change install behavior.

Summary by CodeRabbit

  • Bug Fixes
    • Corrected feature installation messages so deprecated-feature warnings and troubleshooting guidance display properly.
    • Improved generated installation scripts by ensuring escaped values are handled correctly.

… script

The feature install wrapper script contained two JS template-literal
expressions left over from the upstream TypeScript devcontainers CLI that
were pasted verbatim into Go raw strings and never interpolated:

- ${documentation} in the troubleshooting message printed literally
  instead of the feature's documentation URL.
- ${escapeQuotesForShell(feature.id)} in the deprecation warning printed
  a literal JS function call instead of the feature id.

Replace both with Go string concatenation of the already-escaped values.
@netlify

netlify Bot commented Jul 24, 2026

Copy link
Copy Markdown

Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit 6b3e76a
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6a6382b6ad370f000844e60c

@netlify

netlify Bot commented Jul 24, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 6b3e76a
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a6382b609423100085c9dbb

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 68e2f9b8-bd61-478c-a17a-5a8a9d7d85e3

📥 Commits

Reviewing files that changed from the base of the PR and between b3896a6 and 6b3e76a.

📒 Files selected for processing (1)
  • pkg/devcontainer/feature/features.go

📝 Walkthrough

Walkthrough

Changes

Feature wrapper script fixes

Layer / File(s) Summary
Correct generated message interpolation
pkg/devcontainer/feature/features.go
Generated scripts now use the local id and escaped documentation values in warning and troubleshooting messages.

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main fix to the feature install wrapper script and mentions the key values corrected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@skevetter
skevetter marked this pull request as ready for review July 24, 2026 15:34
@skevetter
skevetter merged commit 7783f5d into main Jul 24, 2026
64 checks passed
@skevetter
skevetter deleted the fix/feature-install-documentation-placeholder branch July 24, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant