Skip to content

Commit

Permalink
error if python3Packages or python3.pkgs is used
Browse files Browse the repository at this point in the history
they wont report the build status properly because they're just
"aliases" and hydra doesn't know that
  • Loading branch information
Artturin committed Apr 21, 2022
1 parent 3489727 commit 0639d7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
};
flake-utils = { url = "github:numtide/flake-utils"; };
flake-compat = {
url = github:edolstra/flake-compat;
url = "github:edolstra/flake-compat";
flake = false;
};
};
Expand Down
5 changes: 5 additions & 0 deletions src/hydra_check/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import logging
from sys import exit as sysexit
from typing import Dict, Iterator, Union

Expand Down Expand Up @@ -122,6 +123,7 @@ def print_buildreport(build: BuildStatus) -> None:


def main() -> None:
logging.basicConfig(format='%(levelname)s: %(message)s')

args = process_args()

Expand All @@ -134,6 +136,9 @@ def main() -> None:
all_builds = {}

for package in packages:
if package.startswith("python3Packages") or package.startswith("python3.pkgs"):
logging.error("instead of '%s', you want python3XPackages... (replace X)", package)
continue
package_name = guess_packagename(package, args.arch, is_channel)
ident = f"{jobset}/{package_name}"
if only_url:
Expand Down

0 comments on commit 0639d7a

Please sign in to comment.