Skip to content

flake.nix: Fix ambiguous backslash-escape in the version number regex - #225

Merged
mikeodr merged 1 commit into
tailscale:mainfrom
antifuchs:push-zzxnrrprpuqz
Apr 7, 2026
Merged

flake.nix: Fix ambiguous backslash-escape in the version number regex#225
mikeodr merged 1 commit into
tailscale:mainfrom
antifuchs:push-zzxnrrprpuqz

Conversation

@antifuchs

Copy link
Copy Markdown
Contributor

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.

This PR fixes the ambiguity, ensuring the regex matches the intended target string unambiguously.

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>
@antifuchs
antifuchs force-pushed the push-zzxnrrprpuqz branch from 9002810 to fb9393e Compare April 4, 2026 14:49
@mikeodr

mikeodr commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Thanks for the PR!

@mikeodr
mikeodr merged commit bcf8006 into tailscale:main Apr 7, 2026
4 checks passed
@antifuchs
antifuchs deleted the push-zzxnrrprpuqz branch April 7, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants