Skip to content

Commit 0639d7a

Browse files
committed
error if python3Packages or python3.pkgs is used
they wont report the build status properly because they're just "aliases" and hydra doesn't know that
1 parent 3489727 commit 0639d7a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
};
1111
flake-utils = { url = "github:numtide/flake-utils"; };
1212
flake-compat = {
13-
url = github:edolstra/flake-compat;
13+
url = "github:edolstra/flake-compat";
1414
flake = false;
1515
};
1616
};

src/hydra_check/cli.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import json
2+
import logging
23
from sys import exit as sysexit
34
from typing import Dict, Iterator, Union
45

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

123124

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

126128
args = process_args()
127129

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

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

0 commit comments

Comments
 (0)