From 12487a2273439b7b31fdaebc5afa185ed07cddfc Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Tue, 23 May 2023 22:49:28 +0200 Subject: [PATCH] Refine summary language and add another problem to flake.bad.lock --- flake.bad.lock | 4 ++-- src/templates/summary.md | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/flake.bad.lock b/flake.bad.lock index 07a31ab..23b2fdf 100644 --- a/flake.bad.lock +++ b/flake.bad.lock @@ -22,13 +22,13 @@ "locked": { "lastModified": 1684464849, "narHash": "sha256-f8th/GWE9M2hePTMZc0YyFboigt9AG/ioEcyHcdFK2I=", - "owner": "NixOS", + "owner": "bitcoin-miner-org", "repo": "nixpkgs", "rev": "b969a89c3e84a121c9b3af2e4ef277cd822b988a", "type": "github" }, "original": { - "owner": "NixOS", + "owner": "bitcoin-miner-org", "ref": "nixpkgs-unstable", "repo": "nixpkgs", "type": "github" diff --git a/src/templates/summary.md b/src/templates/summary.md index 6687af8..89b80c8 100644 --- a/src/templates/summary.md +++ b/src/templates/summary.md @@ -1,16 +1,16 @@ # Nix flake dependency check -:warning: Scanning your `flake.lock` has turned up a few issues we recommend looking into. +> :warning: The Nix Installer Action scanned your `flake.lock` and discovered a few issues that we recommend looking into. {{#if has_disallowed}} -## Non-supported branches +## Non-supported Git branches for Nixpkgs {{#each disallowed}} -* The `{{this.details.input}}` input uses Git ref `{{this.details.ref}}` +* The `{{this.details.input}}` input uses the `{{this.details.ref}}` branch {{/each}}
-What to do :hammer: +:hammer: What to do Use one of these branches instead: {{{supported_ref_names}}} @@ -25,7 +25,7 @@ Here's an example:
-Why using supported branches is important +Why it's important to use supported branches {{{supported_refs_explainer}}}
{{/if}} @@ -40,7 +40,7 @@ Here's an example: The maximum recommended age is **{{max_days}}** days.
-What to do :hammer: +:hammer: What to do Use the [`update-flake-lock`][flake-lock-action] GitHub Action to automate updates: @@ -55,7 +55,7 @@ steps:
-Why keeping Nix dependencies up to date is important +Why it's important to keep Nix dependencies up to date {{{ outdated_deps_explainer }}}
{{/if}} @@ -68,7 +68,7 @@ steps: {{/each}}
-What to do :hammer: +:hammer: What to do Use a Nixpkgs dependency from the [`NixOS`][nixos] org. Here's an example: @@ -78,11 +78,11 @@ Here's an example: } ``` -If you need a customized version of Nixpkgs, we recommend using methods like [overlays] and per-package [overrides]. +If you need a customized version of Nixpkgs, we recommend that you use [overlays] and per-package [overrides].
- Why using upstream Nixpkgs is important + Why it's important to use upstream Nixpkgs {{{ upstream_nixpkgs_explainer }}}
{{/if}}