Skip to content

Conversation

@vic
Copy link
Owner

@vic vic commented Nov 14, 2025

See #91 for context.

See failure for reproduction

Support for top-level contextual aspects was added at vic/flake-aspects#14.

Closes #92.

@vic vic changed the title Make den.aspects a provides tree. Test top-level contextual aspects. Nov 15, 2025
@vic vic marked this pull request as ready for review November 16, 2025 00:28
Copilot AI review requested due to automatic review settings November 16, 2025 00:28
Copy link

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 adds support and demonstration for top-level contextual aspects in the default template. The changes update dependency versions and refactor the alice.nix example to showcase a context-aware aspect defined at the module's top level.

  • Updates flake-aspects and den dependencies to versions that support top-level contextual aspects
  • Refactors alice.nix to demonstrate the new top-level contextual aspect pattern with the cooper aspect
  • Updates comments to clarify aspect inclusion patterns and usage

Reviewed Changes

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

File Description
templates/examples/flake.lock Updates den and flake-aspects dependencies to support top-level contextual aspects
templates/default/modules/aspects/alice.nix Demonstrates top-level contextual aspect pattern by defining cooper aspect and refactoring includes
templates/default/flake.lock Updates den and flake-aspects dependencies to support top-level contextual aspects
templates/bogus/flake.lock Updates den and flake-aspects dependencies to support top-level contextual aspects

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

# from local bindings.
customEmacs
<eg/autologin>
# from the aspect tree, cooper example is defined bellow
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

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

Corrected spelling of 'bellow' to 'below'.

Suggested change
# from the aspect tree, cooper example is defined bellow
# from the aspect tree, cooper example is defined below

Copilot uses AI. Check for mistakes.

# Alice can include other aspects.
# For small, private one-shot aspects, use let-bindings like here.
# for more complex or re-usable ones, define on their own modules,
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

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

Grammatical error: 'define on' should be 'define in' or 'define them in'.

Suggested change
# for more complex or re-usable ones, define on their own modules,
# for more complex or re-usable ones, define in their own modules,

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings November 16, 2025 09:24
@vic vic merged commit 227451c into main Nov 16, 2025
4 checks passed
@vic vic deleted the provides branch November 16, 2025 09:24
Copy link

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

Copilot reviewed 2 out of 5 changed files in this pull request and generated no new comments.


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

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.

Not possible to define context-aware aspects at top-level den.aspects.

2 participants