Skip to content

Commit

Permalink
use old nix-build command
Browse files Browse the repository at this point in the history
It seems that the outputs nix build --log-format raw are still different from the old nix-build
  • Loading branch information
Mic92 authored and mergify[bot] committed Sep 27, 2023
1 parent cac3e54 commit 2d96c7a
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions nix_fast_build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ async def build(
self, stack: AsyncExitStack, build_output: IO[str], opts: Options
) -> int:
proc = await stack.enter_async_context(
nix_build(self.drv_path + "^*", build_output, opts)
nix_build(self.drv_path, build_output, opts)
)
rc = 0
for _ in range(opts.retries + 1):
Expand Down Expand Up @@ -564,16 +564,11 @@ async def get_context(self) -> AsyncIterator[T]:
async def nix_build(
installable: str, stderr: IO[Any] | None, opts: Options
) -> AsyncIterator[Process]:
args = nix_command(
[
"build",
installable,
"--log-format",
"raw",
"--keep-going",
]
+ opts.options
)
args = [
"nix-build",
installable,
"--keep-going",
] + opts.options
args = maybe_remote(args, opts)
logger.debug("run %s", shlex.join(args))
proc = await asyncio.create_subprocess_exec(*args, stderr=stderr)
Expand Down

0 comments on commit 2d96c7a

Please sign in to comment.