Skip to content

Commit 5e14339

Browse files
authored
Merge pull request #372 from nix-community/pty
Prepare color support
2 parents 194d97c + ed84807 commit 5e14339

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

buildbot_nix/buildbot_nix/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,6 +836,7 @@ def __init__(
836836
self.worker_names = worker_names
837837
self.post_build_steps = post_build_steps
838838
self.branch_config_dict = branch_config_dict
839+
self.outputs_path = outputs_path
839840

840841
super().__init__(**kwargs)
841842

@@ -1065,7 +1066,7 @@ def nix_eval_config(
10651066
factory.addStep(
10661067
NixEvalCommand(
10671068
project=project,
1068-
env={},
1069+
env={"CLICOLOR_FORCE": "1"},
10691070
name="Evaluate flake",
10701071
supported_systems=supported_systems,
10711072
job_report_limit=job_report_limit,
@@ -1149,7 +1150,8 @@ def nix_build_steps(
11491150
) -> list[steps.BuildStep]:
11501151
out_steps = [
11511152
NixBuildCommand(
1152-
env={},
1153+
env={"CLICOLOR_FORCE": "1"},
1154+
usePTY=True,
11531155
name="Build flake attr",
11541156
command=[
11551157
"nix",

buildbot_nix/buildbot_nix/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class NixEvalJobSuccess(BaseModel):
343343
neededBuilds: list[str] # noqa: N815
344344
neededSubstitutes: list[str] # noqa: N815
345345
drvPath: str # noqa: N815
346-
inputDrvs: dict[str, list[str]] # noqa: N815
346+
inputDrvs: dict[str, list[str]] | None = None # noqa: N815
347347
name: str
348348
outputs: dict[str, str]
349349
system: str

buildbot_nix/pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ ignore = [
5353
"ARG001",
5454
"ARG002",
5555

56-
# Missing type annotation for `self` in method
57-
"ANN101",
5856
# Dynamically typed expressions (typing.Any)
5957
"ANN401",
6058
# Trailing comma missing

nix/worker.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ in
9696
pkgs.cachix
9797
pkgs.git
9898
pkgs.openssh
99-
pkgs.nix
99+
config.nix.package
100100
pkgs.bash
101101
pkgs.coreutils
102102
cfg.nixEvalJobs.package

0 commit comments

Comments
 (0)