Skip to content

Add pulumi.com devcontainer feature - #86

Merged
sebst merged 5 commits into
mainfrom
copilot/add-feature-pulumi-com
Mar 16, 2026
Merged

sebst merged 5 commits into
mainfrom
copilot/add-feature-pulumi-com

Conversation

Copilot AI commented Mar 16, 2026 •

Copy link
Copy Markdown
Contributor

Adds a new community devcontainer feature to install the Pulumi CLI.

What's added

  • src/pulumi.com/devcontainer-feature.json — feature manifest with a version option (default: latest)
  • src/pulumi.com/install.sh — downloads and installs the pulumi binary from GitHub releases (pulumi/pulumi); supports amd64/arm64; extracts only the pulumi binary from the archive to /usr/local/bin
  • src/pulumi.com/README.md — auto-generated docs
  • test/pulumi.com/test.sh — smoke test verifying pulumi version exits successfully
  • .github/workflows/test.yaml — pulumi.com added to both test-autogenerated and test-scenarios CI matrices

Usage

"features": {
    "ghcr.io/devcontainer-community/devcontainer-features/pulumi.com:1": {}
}

Pinning a specific version:

"features": {
    "ghcr.io/devcontainer-community/devcontainer-features/pulumi.com:1": {
        "version": "3.160.0"
    }
}
Original prompt

This section details on the original issue you should resolve

<issue_title>Add feature pulumi.com</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Co-authored-by: sebst <592313+sebst@users.noreply.github.com>
@sebst
sebst requested a review from Copilot March 16, 2026 14:48
Copilot AI changed the title [WIP] Add feature pulumi.com Add pulumi.com devcontainer feature Mar 16, 2026
Copilot AI requested a review from sebst March 16, 2026 14:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a new pulumi.com devcontainer Feature to install the Pulumi CLI in this devcontainer-features repo, along with generated documentation and a basic smoke test.

Changes:

  • Introduces src/pulumi.com feature definition (devcontainer-feature.json) and installer (install.sh) for Pulumi.
  • Adds generated feature README for usage/options.
  • Adds a devcontainer feature test script that validates pulumi version runs.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
test/pulumi.com/test.sh Adds a smoke test to confirm the Pulumi CLI executes.
src/pulumi.com/README.md Adds the generated feature README (usage/options).
src/pulumi.com/install.sh Adds the Pulumi download/install logic from GitHub releases.
src/pulumi.com/devcontainer-feature.json Defines the feature metadata and version option.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/pulumi.com/README.md
Comment on lines +16 to +18
| Options Id | Description | Type | Default Value |
|-----|-----|-----|-----|
| version | Version of "pulumi" to install. | string | latest |
Comment thread src/pulumi.com/install.sh Outdated
fi
readonly downloadUrl="$(echo -n "$downloadUrlTemplate" | envsubst)"
curl_check_url "$downloadUrl"
curl_download_stdout "$downloadUrl" | tar -xz --strip-components=1 -C "$binaryTargetFolder"
Comment thread src/pulumi.com/install.sh Outdated
Comment on lines +135 to +136
curl_download_stdout "$downloadUrl" | tar -xz --strip-components=1 -C "$binaryTargetFolder"
chmod 755 "${binaryTargetFolder}/${binaryName}"
@sebst

sebst commented Mar 16, 2026

Copy link
Copy Markdown
Member

@copilot New features need to be added to .github/workflows/test.yaml

Co-authored-by: sebst <592313+sebst@users.noreply.github.com>

Copilot AI commented Mar 16, 2026

Copy link
Copy Markdown
Contributor Author

@copilot New features need to be added to .github/workflows/test.yaml

Done in 06122fa — added pulumi.com to both the test-autogenerated and test-scenarios matrix lists in .github/workflows/test.yaml. Also took the opportunity to fix the tar extraction in install.sh to use the existing curl_download_untar helper and target only the pulumi binary from the archive (consistent with starship.rs/chezmoi.io).

@sebst sebst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

tests are failing

Co-authored-by: sebst <592313+sebst@users.noreply.github.com>

Copilot AI commented Mar 16, 2026

Copy link
Copy Markdown
Contributor Author

tests are failing

Fixed in 064db2d — the curl_download_untar helper function was being called but never defined in install.sh. Each feature's script is self-contained, so the definition needs to be included inline (as starship.rs and others do). Added the missing function definition.

Copilot AI requested a review from sebst March 16, 2026 15:45
@sebst
sebst marked this pull request as ready for review March 16, 2026 15:50
@sebst
sebst merged commit d2664ca into main Mar 16, 2026
95 of 97 checks passed
@sebst
sebst deleted the copilot/add-feature-pulumi-com branch March 23, 2026 19:12
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.

Add feature pulumi.com

3 participants