Skip to content

Preserve follows bug#35

Merged
vic merged 11 commits into
mainfrom
preserve-follows-bug
Oct 20, 2025
Merged

Preserve follows bug#35
vic merged 11 commits into
mainfrom
preserve-follows-bug

Conversation

@vic
Copy link
Copy Markdown
Member

@vic vic commented Oct 20, 2025

Fixes #32

Copilot AI review requested due to automatic review settings October 20, 2025 21:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug related to preserving follows declarations in flake inputs by refactoring the input processing logic. The changes extract utility functions into a shared library module and add comprehensive test coverage for the inputsExpr function.

  • Extracted inputsExpr and isNonEmptyString functions to a reusable _lib.nix module
  • Fixed handling of follows attribute in input processing
  • Added unit tests for inputsExpr using nix-unit framework

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
modules/write-flake.nix Removed duplicate utility functions and imports them from new shared library
dev/modules/_lib.nix New shared library containing extracted utility functions for input processing
dev/modules/unit-tests/inputsExpr.nix New unit test file testing various input scenarios including follows handling
dev/modules/nix-unit.nix Configuration for nix-unit testing framework
dev/flake.nix Added nix-unit as a dependency

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread dev/modules/_lib.nix Outdated
@vic vic force-pushed the preserve-follows-bug branch from 5ca731f to 53e5292 Compare October 20, 2025 22:35
@vic vic merged commit 53a9c4b into main Oct 20, 2025
6 checks passed
@vic vic deleted the preserve-follows-bug branch October 20, 2025 23:07
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.

Input follow doesn't get respected

2 participants