Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 2, 2026

Templates failed nix flake check on macOS because they defined packages that tried to build from non-existent source files.

Changes

Commented out example package definitions:

  • csharp-shell: buildDotnetModule referencing missing src/MyApp.csproj and deps.json
  • go-shell: buildGoModule with src = self (no Go sources in template)
  • zig-shell: mkDerivation with src = self (no Zig sources in template)
  • ocaml-shell: Three buildDunePackage definitions with src = ./. (no OCaml sources)

Added minimal composer.json to laravel-shell:

  • Required by buildPhpFromComposer { src = inputs.self; ... }
  • Prevents evaluation failure during flake check

Templates remain fully functional as development environments. Users can uncomment package definitions when they have actual project source files.

# Before (fails nix flake check)
packages = {
  default = pkgs.buildGoModule {
    src = self;  # No Go sources exist in template
    ...
  };
};

# After (check passes, users can uncomment when ready)
# packages = {
#   default = pkgs.buildGoModule {
#     src = ./.;  # Use project sources
#     ...
#   };
# };

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:

  • https://api.github.com/repos/numtide/flake-utils/commits/HEAD
    • Triggering command: /nix/var/nix/profiles/default/bin/nix nix flake metadata (http block)
    • Triggering command: /nix/var/nix/profiles/default/bin/nix nix flake metadata owner --uid-owner 0 -j ACCEPT (http block)
  • https://api.github.com/repos/numtide/flake-utils/tarball/11707dc2f618dd54ca8739b309ec4fc024de578b
    • Triggering command: /nix/var/nix/profiles/default/bin/nix nix flake check (http block)
  • https://api.github.com/repos/numtide/treefmt-nix/tarball/dec15f37015ac2e774c84d0952d57fcdf169b54d
    • Triggering command: /nix/var/nix/profiles/default/bin/nix nix fmt -- templates/csharp-shell/flake.nix templates/go-shell/flake.nix templates/zig-shell/flake.nix templates/ocaml-shell/flake.nix templates/laravel-shell/flake.nix templates/laravel-shell/composer.json (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Reference: https://github.com/connerohnesorge/dotfiles/actions/runs/20668596057/job/59345521821#step:4:1

Fix the failing template shells


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 2, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


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

Copilot AI changed the title [WIP] Fix the failing template shells Fix template flake checks by removing package builds without source files Jan 2, 2026
Copilot AI requested a review from connerohnesorge January 2, 2026 23:50
@connerohnesorge connerohnesorge marked this pull request as ready for review January 3, 2026 03:10
@connerohnesorge connerohnesorge merged commit d593477 into main Jan 3, 2026
6 checks passed
@connerohnesorge connerohnesorge deleted the copilot/fix-failing-template-shells branch January 3, 2026 22:59
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