Add devenv.sh feature - #89
Conversation
Co-authored-by: sebst <592313+sebst@users.noreply.github.com>
|
@copilot New features need to be added to .github/workflows/test.yaml |
Co-authored-by: sebst <592313+sebst@users.noreply.github.com>
sebst
left a comment
There was a problem hiding this comment.
Tests are still failing:
[2026-03-16T15:32:38.968Z] ERROR: failed to build: failed to solve: process "/bin/sh -c cp -ar /tmp/build-features-src/devenv.sh_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/devenv.sh_0 && cd /tmp/dev-container-features/devenv.sh_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/devenv.sh_0" did not complete successfully: exit code: 1
…y download Co-authored-by: sebst <592313+sebst@users.noreply.github.com>
The tests were failing because Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Co-authored-by: sebst <592313+sebst@users.noreply.github.com>
The error shown is from the run before my fix — the new CI run (triggered by commit 5aa30ae, now 158bac0) shows The root cause of the original failure: |
Adds a devcontainer feature for devenv.sh — a Nix-based developer environment manager by Cachix.
Changes
src/devenv.sh/devcontainer-feature.json— feature metadata withversionoption (default:latest)src/devenv.sh/install.sh— installs devenv via Nix: installs the Nix package manager if not already present (using the Determinate Systems installer, same approach as thenixos.orgfeature), starts the Nix daemon, then installs devenv from thedevenv.cachix.orgbinary cache vianix profile install github:cachix/devenv[/v{version}]#devenv; supports bothlatestand specific version tags (e.g.2.0.4); symlinks the devenv binary to/usr/local/bin/devenvsrc/devenv.sh/README.md— auto-generated format documentationtest/devenv.sh/test.sh— verifies binary is installed and functional.github/workflows/test.yaml— addeddevenv.shto both thetest-autogeneratedandtest-scenariosCI matricesUsage
Original prompt
devenv.sh#41🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.