srid / nixci

Define and build CI for Nix projects anywhere; superceded by Omnix https://omnix.page/om/ci.html
GNU Affero General Public License v3.0
108 stars 5 forks source link

defined nixci jobs in flake outputs not working #72

Closed tgunnoe closed 1 month ago

tgunnoe commented 1 month ago

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): .