[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/nix-mode a3eb135716 492/500: nix-flake: Fix miscomparison
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/nix-mode a3eb135716 492/500: nix-flake: Fix miscomparison to avoid repeatedly adding to registry |
Date: |
Sat, 29 Jan 2022 08:27:59 -0500 (EST) |
branch: elpa/nix-mode
commit a3eb135716039c668ab2cc37d47eeffd50976b86
Author: Akira Komamura <akira.komamura@gmail.com>
Commit: Akira Komamura <akira.komamura@gmail.com>
nix-flake: Fix miscomparison to avoid repeatedly adding to registry
---
nix-flake.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/nix-flake.el b/nix-flake.el
index 1f12f41c2a..fbd99084cb 100644
--- a/nix-flake.el
+++ b/nix-flake.el
@@ -156,12 +156,13 @@ readers in transient.el."
"Select a directory containing a flake.
For PROMPT and INITIAL-INPUT, see the documentation of transient.el."
- (let ((input (read-directory-name prompt initial-input nil t)))
+ (let ((input (string-remove-suffix "/" (read-directory-name prompt
initial-input nil t))))
(prog1 (expand-file-name input)
(unless (file-exists-p (expand-file-name "flake.nix" input))
(user-error "The selected directory does not contain flake.nix"))
(when (and nix-flake-add-to-registry
- (not (member input (nix-flake--registry-refs))))
+ (not (member (concat "path:" input)
+ (nix-flake--registry-refs))))
(nix-flake--registry-add-1 input)))))
;;;;; --update-input
- [nongnu] elpa/nix-mode d9c1d4d4a4 152/500: Remove maintained modes, (continued)
- [nongnu] elpa/nix-mode d9c1d4d4a4 152/500: Remove maintained modes, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 594b979c91 140/500: Missed one, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode d1650d795c 151/500: Cleanup documentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode be839f971b 157/500: Use nix-mode-mmm when mmm-mode is available, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode a1860c6bde 144/500: Handle projectile projects, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 50470960c6 154/500: Don’t require nix-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ccf4c9ad64 164/500: Update URLs to this repository, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode bd7d93998f 163/500: Fix some grammar issues in README, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 84996a7804 158/500: Fix checkdoc errors., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 14322f186f 189/500: Use locate-library instead of find-library, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode a3eb135716 492/500: nix-flake: Fix miscomparison to avoid repeatedly adding to registry,
ELPA Syncer <=
- [nongnu] elpa/nix-mode 2a24b400b6 485/500: chore: Bump install-nix-action to v14.1, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ce7996c6e7 476/500: nix-flake: Cosmetics, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 3d4f24b2b6 472/500: nix-flake: Allow switching the flake inside nix-flake-dispatch, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 5fb9df6f69 497/500: chore(deps): bump cachix/install-nix-action from 14.1 to 16, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 687665a6b0 001/500: Initial commit, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode e6b9f1b939 016/500: Add menu bar., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode ae68b456f8 022/500: Refactor font lock, ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 7b47e2b4bc 042/500: Fix formatting., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 570d60d460 045/500: Rewrite nix-indent-level-parens with while loop., ELPA Syncer, 2022/01/29
- [nongnu] elpa/nix-mode 8a65262d37 200/500: Remove smartparens feature detection, ELPA Syncer, 2022/01/29