Skip to content

Commit bcf8006

Browse files
authored
nix: Fix ambiguous backslash-escape in the version number regex (#225)
The latest version of lix (v2.95.1) has deprecated \. as a string escape as it is ill-defined, issuing this warning now: warning: \. is an ill-defined escape. You can drop the \ and simply write . instead. Use --extra-deprecated-features broken-string-escape to silence this warning. But unfortunately, using "." doesn't carry the intended meaning. What we need to do here is to use "\\." to match a regex-escaped period. Signed-off-by: Andreas Fuchs <asf@boinkor.net>
1 parent d6d2679 commit bcf8006

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
let
5353
tsVersion =
5454
with builtins;
55-
head (match ".*tailscale.com v([0-9]+\.[0-9]+\.[0-9]+-?[a-zA-Z]?).*" (readFile ./go.mod));
55+
head (match ".*tailscale.com v([0-9]+\\.[0-9]+\\.[0-9]+-?[a-zA-Z]?).*" (readFile ./go.mod));
5656
in
5757
[
5858
"-w"

0 commit comments

Comments
 (0)