Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add paths command for listing all output paths for a release #138

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lucperkins
Copy link
Member

@lucperkins lucperkins commented Aug 21, 2024

The paths command enables you to list all output paths for a flake release as nested JSON. Here's an example:

fh paths "my-org/nixos-configs/0.1"
{
  "nixosConfigurations": {
    "prod-server": "/nix/store/j8mdgrcb91778ywx7jfxax14ly8ypynz-prod-server"
  }
}

Copy link
Member

@grahamc grahamc left a comment

Choose a reason for hiding this comment

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

Some hesitations/questions I'm having:

  1. This makes the version of org/flake/version optional, with a default to *. I think we should make sure we like this syntax and do a bit of internal vibe check. Let's chat at standup?
  2. paths is a bit of a weird name for this command. Maybe outputs? Is there a noun verb structure we can put in place house this?

Separately, I think this is a good PR. Especially for debugging why fh resolve is grumpy at me ...

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