Skip to content

defined nixci jobs in flake outputs not working #72

@tgunnoe

Description

@tgunnoe

Maybe I've read the docs incorrectly, but I thought I should be able to do this:

nixci = {
  builds = with inputs.self; {
    inherit packages devShells apps;
  };
  tests = with inputs.self; {inherit checks;};
};

nixci build .#tests

Error: Command error: Process exited unsuccessfully. exit_code=Some(1) stderr=warning: Git tree '/home//src/project' is dirty
error: flake 'git+file:///home/src/project' does not provide attribute 'packages.x86_64-linux.nixci.tests', 'legacyPackages.x86_64-linux.nixci.tests' or 'nixci.tests'


Caused by:
    Process exited unsuccessfully. exit_code=Some(1) stderr=warning: Git tree '/home/src/project' is dirty
    error: flake 'git+file:///home/src/project' does not provide attribute 'packages.x86_64-linux.nixci.tests', 'legacyPackages.x86_64-linux.nixci.tests' or 'nixci.tests'

I can't reference directly either:

nixci build .#nixci.x86_64-linux.tests
Error: Invalid flake URL (too many nested attr): .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions