Skip to content

nitpick: nix flake metadata error is confusing #266

@OlivierLDff

Description

@OlivierLDff

Error

Error: 
   0: Getting flake metadata
   1: Parsing `nix flake metadata --json /home/runner/_work/repo/repo/` as JSON
   2: EOF while parsing a value at line 1 column 0

Metadata

key value
version 0.1.0
os linux
arch x86_64

Context

I got this error, because flake.nix is located in a subfolder. nix flake metadata --json report:
path '/home/naostage/dev/repo' does not contain a 'flake.nix', searching up

This is a nitpick to just add a real error to explicitly say flake.nix wasn't found in folder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions