Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cli: live update the eval attr, not the derivation path

+7 -7
+3 -3
apps/nix/lib/nix/build/jobs.ex
··· 131 131 end 132 132 133 133 defp run_build(eval, notify_pid) do 134 - drv_path = eval.output["drvPath"] 135 - notify(notify_pid, {:build_started, drv_path}) 134 + attr = eval.request.attr || "(root)" 135 + notify(notify_pid, {:build_started, attr}) 136 136 {_status, build} = Build.run(eval) 137 - notify(notify_pid, {:build_completed, drv_path, build.status}) 137 + notify(notify_pid, {:build_completed, attr, build.status}) 138 138 build 139 139 end 140 140
+4 -4
apps/sower_cli/lib/sower_cli/build.ex
··· 159 159 result = 160 160 receive_progress(task, %{}, fn msg, blocks -> 161 161 case msg do 162 - {:build_started, drv_path} -> 163 - name = drv_path || "(unknown)" 162 + {:build_started, attr} -> 163 + name = attr || "(unknown)" 164 164 block_id = {:build, name} 165 165 Output.live_item_start(block_id, "Building", name) 166 166 Map.put(blocks, name, block_id) 167 167 168 - {:build_completed, drv_path, status} -> 169 - name = drv_path || "(unknown)" 168 + {:build_completed, attr, status} -> 169 + name = attr || "(unknown)" 170 170 block_id = Map.get(blocks, name, {:build, name}) 171 171 172 172 case status do